WordPress\AiClient\Tools\DTO

WebSearch::getJsonSchema │ public static │ WP 0.1.0

{@inheritDoc}

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

Хуков нет.

Возвращает

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

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

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

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

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

Код WebSearch::getJsonSchema() WP 7.1.3

public static function getJsonSchema(): array
{
    return ['type' => 'object', 'properties' => [self::KEY_ALLOWED_DOMAINS => ['type' => 'array', 'items' => ['type' => 'string'], 'description' => 'List of domains that are allowed for web search.'], self::KEY_DISALLOWED_DOMAINS => ['type' => 'array', 'items' => ['type' => 'string'], 'description' => 'List of domains that are disallowed for web search.']], 'required' => []];
}