PromptBuilder::withText( string $text ): self

In this article

Adds text to the current message.

Parameters

$textstringrequired
The text to add.

Return

self

Source

public function withText(string $text): self
{
    $part = new MessagePart($text);
    $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.