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