Adds a function call to the message.
Parameters
$functionCallWordPressAiClientToolsDTOFunctionCallrequired- The function call to add.
Source
public function withFunctionCall(FunctionCall $functionCall): self
{
$this->parts[] = new MessagePart($functionCall);
return $this;
}
Changelog
| Version | Description |
|---|---|
| 0.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.