workspace = is_string($workspace) ? new Id($workspace) : $workspace; $this->user = is_string($user) ? new Id($user) : $user; $this->conversation = is_string($conversation) ? new Id($conversation) : $conversation; $this->model = is_string($model) ? new Model($model) : $model; } public function setPrompt(string|Content $prompt): void { $this->prompt = is_string($prompt) ? new Content($prompt) : $prompt; } public function setAssistant(string|Id|AssistantEntity $assistant): self { $this->assistant = is_string($assistant) ? new Id($assistant) : $assistant; return $this; } public function setQuote(string $quote): void { $this->quote = new Quote($quote); } public function setParent(string $parent): void { $this->parent = new Id($parent); } }