FunctionDeclaration::__construct( string $name, string $description,  $parameters = null )

In this article

Constructor.

Parameters

$namestringrequired
The name of the function.
$descriptionstringrequired
A description of what the function does.
mixed>|null $parameters The JSON schema for the function parameters.

Source

public function __construct(string $name, string $description, ?array $parameters = null)
{
    $this->name = $name;
    $this->description = $description;
    $this->parameters = $parameters;
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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