WordPress\AiClient\Tools\DTO

WebSearch::getJsonSchemapublic staticWP 0.1.0

{@inheritDoc}

Method of the class: WebSearch{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 0.1.0 Introduced.

WebSearch::getJsonSchema() code WP 7.0

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' => []];
}