WordPress\AiClient\Results\DTO

GenerativeAiResult::getCandidateCountpublicWP 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.0

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