Adds message parts to the current message.
Parameters
$partsWordPressAiClientMessagesDTOMessagePartrequired- The message parts to add.
Source
public function withMessageParts(MessagePart ...$parts): self
{
foreach ($parts as $part) {
$this->appendPartToMessages($part);
}
return $this;
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.