WordPress\AiClient\Providers\Models\DTO

ModelRequirements::getJsonSchemapublic staticWP 0.1.0

{@inheritDoc}

Метод класса: ModelRequirements{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 0.1.0 Введена.

Код ModelRequirements::getJsonSchema() 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]];
}