WordPress\AiClient\Results\DTO
Candidate::getJsonSchema
{@inheritDoc}
Method of the class: Candidate{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Candidate::getJsonSchema(): array;
Changelog
| Since 0.1.0 | Introduced. |
Candidate::getJsonSchema() Candidate::getJsonSchema code WP 7.0
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]];
}