WordPress\AiClient\Providers\Models\DTO

ModelRequirements::getJsonSchemapublic staticWP 0.1.0

{@inheritDoc}

Method of the class: ModelRequirements{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 0.1.0 Introduced.

ModelRequirements::getJsonSchema() code WP 7.0

public static function getJsonSchema(): array
{
    return ['type' => 'object', 'properties' => [self::KEY_REQUIRED_CAPABILITIES => ['type' => 'array', 'items' => ['type' => 'string', 'enum' => CapabilityEnum::getValues()], 'description' => 'The capabilities that the model must support.'], self::KEY_REQUIRED_OPTIONS => ['type' => 'array', 'items' => \WordPress\AiClient\Providers\Models\DTO\RequiredOption::getJsonSchema(), 'description' => 'The options that the model must support with specific values.']], 'required' => [self::KEY_REQUIRED_CAPABILITIES, self::KEY_REQUIRED_OPTIONS]];
}