WordPress\AiClient\Results\DTO

GenerativeAiResult::getCandidateCount │ public │ WP 0.1.0

Gets the total number of candidates.

Method of the class: GenerativeAiResult{}

No Hooks.

Returns

int. The total number of candidates.

Usage

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

Changelog

Since 0.1.0 Introduced.

GenerativeAiResult::getCandidateCount() code WP 7.1.2

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