WordPress\AiClient\Results\DTO

GenerativeAiResult::getCandidateCount │ public │ WP 0.1.0

Gets the total number of candidates.

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

Хуков нет.

Возвращает

int. The total number of candidates.

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

$GenerativeAiResult = new GenerativeAiResult();
$GenerativeAiResult->getCandidateCount(): int;

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

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

Код GenerativeAiResult::getCandidateCount() WP 7.1.3

public function getCandidateCount(): int
{
    return count($this->candidates);
}