WordPress\AiClient\Builders
MessageBuilder::withFunctionCall
Adds a function call to the message.
Method of the class: MessageBuilder{}
No Hooks.
Returns
self.
Usage
$MessageBuilder = new MessageBuilder(); $MessageBuilder->withFunctionCall( $functionCall ): self;
- $functionCall(FunctionCall) (required)
- The function call to add.
Changelog
| Since 0.2.0 | Introduced. |
MessageBuilder::withFunctionCall() MessageBuilder::withFunctionCall code WP 7.0
public function withFunctionCall(FunctionCall $functionCall): self
{
$this->parts[] = new MessagePart($functionCall);
return $this;
}