ModelConfig::setFunctionDeclarations( WordPressAiClientProvidersModelsDTOlist $functionDeclarations )

In this article

Sets the function declarations.

Parameters

$functionDeclarations<span class="WordPressAiClientProvidersModelsDTOlist”>WordPressAiClientProvidersModelsDTOlistrequired
The function declarations.

Source

public function setFunctionDeclarations(array $functionDeclarations): void
{
    if (!array_is_list($functionDeclarations)) {
        throw new InvalidArgumentException('Function declarations must be a list array.');
    }
    $this->functionDeclarations = $functionDeclarations;
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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