WordPress\AiClient\Tools\DTO
WebSearch::getJsonSchema
{@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() 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' => []];
}