[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Tools/DTO/ -> WebSearch.php (summary)

(no description)

File Size: 95 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WebSearch:: (6 methods):
  __construct()
  getAllowedDomains()
  getDisallowedDomains()
  getJsonSchema()
  toArray()
  fromArray()


Class: WebSearch  - X-Ref

Represents web search configuration for AI models.

This DTO defines constraints for web searches that AI models can perform,
including allowed and disallowed domains.

__construct(array $allowedDomains = [], array $disallowedDomains = [])   X-Ref
Constructor.

param: string[] $allowedDomains List of domains that are allowed for web search.
param: string[] $disallowedDomains List of domains that are disallowed for web search.

getAllowedDomains()   X-Ref
Gets the allowed domains.

return: string[] The allowed domains.

getDisallowedDomains()   X-Ref
Gets the disallowed domains.

return: string[] The disallowed domains.

getJsonSchema()   X-Ref
{@inheritDoc}


toArray()   X-Ref
{@inheritDoc}

return: WebSearchArrayShape

fromArray(array $array)   X-Ref
{@inheritDoc}




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref