WordPress\AiClient\Builders

PromptBuilder::usingFunctionDeclarationspublicWP 0.1.0

Sets the function declarations available to the model.

Method of the class: PromptBuilder{}

No Hooks.

Returns

self.

Usage

$PromptBuilder = new PromptBuilder();
$PromptBuilder->usingFunctionDeclarations( FunctionDeclaration ...$functionDeclarations ): self;
FunctionDeclaration ...$functionDeclarations(required)
.

Changelog

Since 0.1.0 Introduced.

PromptBuilder::usingFunctionDeclarations() code WP 7.0

public function usingFunctionDeclarations(FunctionDeclaration ...$functionDeclarations): self
{
    $this->modelConfig->setFunctionDeclarations($functionDeclarations);
    return $this;
}