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
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.