WordPress\AiClient\Tools\DTO

FunctionDeclaration::getJsonSchema │ public static │ WP 0.1.0

{@inheritDoc}

Метод класса: FunctionDeclaration{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = FunctionDeclaration::getJsonSchema(): array;

Список изменений

С версии 0.1.0 Введена.

Код FunctionDeclaration::getJsonSchema() WP 7.1.2

public static function getJsonSchema(): array
{
    return ['type' => 'object', 'properties' => [self::KEY_NAME => ['type' => 'string', 'description' => 'The name of the function.'], self::KEY_DESCRIPTION => ['type' => 'string', 'description' => 'A description of what the function does.'], self::KEY_PARAMETERS => ['type' => 'object', 'description' => 'The JSON schema for the function parameters.', 'additionalProperties' => \true]], 'required' => [self::KEY_NAME, self::KEY_DESCRIPTION]];
}