MessageBuilder::withFunctionCall( WordPressAiClientToolsDTOFunctionCall $functionCall ): self

In this article

Adds a function call to the message.

Parameters

$functionCallWordPressAiClientToolsDTOFunctionCallrequired
The function call to add.

Return

self

Source

public function withFunctionCall(FunctionCall $functionCall): self
{
    $this->parts[] = new MessagePart($functionCall);
    return $this;
}

Changelog

VersionDescription
0.2.0Introduced.

User Contributed Notes

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