WordPress\AiClient\Tools\DTO

FunctionCall::getJsonSchema │ public static │ WP 0.1.0

{@inheritDoc}

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

Хуков нет.

Возвращает

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

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

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

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

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

Код FunctionCall::getJsonSchema() WP 7.1.4

public static function getJsonSchema(): array
{
    return ['type' => 'object', 'properties' => [self::KEY_ID => ['type' => 'string', 'description' => 'Unique identifier for this function call.'], self::KEY_NAME => ['type' => 'string', 'description' => 'The name of the function to call.'], self::KEY_ARGS => ['type' => ['string', 'number', 'boolean', 'object', 'array', 'null'], 'description' => 'The arguments to pass to the function.']], 'anyOf' => [['required' => [self::KEY_ID]], ['required' => [self::KEY_NAME]]]];
}