[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Models/DTO/ -> ModelMetadata.php (summary)

(no description)

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

Defines 1 class

ModelMetadata:: (9 methods):
  __construct()
  getId()
  getName()
  getSupportedCapabilities()
  getSupportedOptions()
  getJsonSchema()
  toArray()
  fromArray()
  __clone()


Class: ModelMetadata  - X-Ref

Represents metadata about an AI model.

This class contains information about a specific AI model, including
its identifier, display name, supported capabilities, and configuration options.

__construct(string $id, string $name, array $supportedCapabilities, array $supportedOptions)   X-Ref
Constructor.

param: string $id The model's unique identifier.
param: string $name The model's display name.
param: list<CapabilityEnum> $supportedCapabilities The model's supported capabilities.
param: list<SupportedOption> $supportedOptions The model's supported configuration options.

getId()   X-Ref
Gets the model's unique identifier.

return: string The model ID.

getName()   X-Ref
Gets the model's display name.

return: string The model name.

getSupportedCapabilities()   X-Ref
Gets the model's supported capabilities.

return: list<CapabilityEnum> The supported capabilities.

getSupportedOptions()   X-Ref
Gets the model's supported configuration options.

return: list<SupportedOption> The supported options.

getJsonSchema()   X-Ref
{@inheritDoc}


toArray()   X-Ref
{@inheritDoc}

return: ModelMetadataArrayShape

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


__clone()   X-Ref
Performs a deep clone of the model metadata.

This method ensures that supported option objects are cloned to prevent
modifications to the cloned metadata from affecting the original.




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