Adds a function response to the message.
Parameters
$functionResponseWordPressAiClientToolsDTOFunctionResponserequired- The function response to add.
Source
public function withFunctionResponse(FunctionResponse $functionResponse): self
{
$this->parts[] = new MessagePart($functionResponse);
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.