WordPress\AiClient\Results\DTO
Candidate::getJsonSchema
{@inheritDoc}
Метод класса: Candidate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Candidate::getJsonSchema(): array;
Список изменений
| С версии 0.1.0 | Введена. |
Код Candidate::getJsonSchema() Candidate::getJsonSchema WP 7.1.2
public static function getJsonSchema(): array
{
return ['type' => 'object', 'properties' => [self::KEY_MESSAGE => Message::getJsonSchema(), self::KEY_FINISH_REASON => ['type' => 'string', 'enum' => FinishReasonEnum::getValues(), 'description' => 'The reason generation stopped.']], 'required' => [self::KEY_MESSAGE, self::KEY_FINISH_REASON]];
}