Adds multiple message parts to the message.
Parameters
$partsWordPressAiClientMessagesDTOMessagePartrequired- The message parts to add.
Source
public function withMessageParts(MessagePart ...$parts): self
{
foreach ($parts as $part) {
$this->parts[] = $part;
}
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.