workspace = is_string($workspace) ? new Id($workspace) : $workspace; $this->user = is_string($user) ? new Id($user) : $user; $this->model = is_string($model) ? new Model($model) : $model; if (is_string($prompt)) { try { $this->prompt = new Id($prompt); } catch (\Throwable $th) { // Unable to create Id from string, not a valid UU $this->prompt = $prompt; } } else { $this->prompt = $prompt; } } public function param(string $key, mixed $value): self { $this->params[$key] = $value; return $this; } }