WordPress\AiClient\Results\DTO
GenerativeAiResult::hasMultipleCandidates
Checks if the result has multiple candidates.
Method of the class: GenerativeAiResult{}
No Hooks.
Returns
true|false. True if there are multiple candidates, false otherwise.
Usage
$GenerativeAiResult = new GenerativeAiResult(); $GenerativeAiResult->hasMultipleCandidates(): bool;
Changelog
| Since 0.1.0 | Introduced. |
GenerativeAiResult::hasMultipleCandidates() GenerativeAiResult::hasMultipleCandidates code WP 7.0
public function hasMultipleCandidates(): bool
{
return $this->getCandidateCount() > 1;
}