PromptBuilder::usingFunctionDeclarations( WordPressAiClientToolsDTOFunctionDeclaration $functionDeclarations ): self

In this article

Sets the function declarations available to the model.

Parameters

$functionDeclarationsWordPressAiClientToolsDTOFunctionDeclarationrequired
The function declarations.

Return

self

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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