PromptBuilder::withMessageParts( WordPressAiClientMessagesDTOMessagePart $parts ): self

In this article

Adds message parts to the current message.

Parameters

$partsWordPressAiClientMessagesDTOMessagePartrequired
The message parts to add.

Return

self

Source

public function withMessageParts(MessagePart ...$parts): self
{
    foreach ($parts as $part) {
        $this->appendPartToMessages($part);
    }
    return $this;
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.