WordPress\AiClient\Results\DTO

GenerativeAiResult::hasMultipleCandidates │ public │ WP 0.1.0

Checks if the result has multiple candidates.

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

Хуков нет.

Возвращает

bool. True if there are multiple candidates, false otherwise.

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

$GenerativeAiResult = new GenerativeAiResult();
$GenerativeAiResult->hasMultipleCandidates(): bool;

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

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

Код GenerativeAiResult::hasMultipleCandidates() WP 7.1.3

public function hasMultipleCandidates(): bool
{
    return $this->getCandidateCount() > 1;
}