WordPress\AiClient\Builders
PromptBuilder::withText
Adds text to the current message.
Method of the class: PromptBuilder{}
No Hooks.
Returns
self.
Usage
$PromptBuilder = new PromptBuilder(); $PromptBuilder->withText( $text ): self;
- $text(string) (required)
- The text to add.
Changelog
| Since 0.1.0 | Introduced. |
PromptBuilder::withText() PromptBuilder::withText code WP 7.0
public function withText(string $text): self
{
$part = new MessagePart($text);
$this->appendPartToMessages($part);
return $this;
}