GenerativeAiResult::hasMultipleCandidates(): bool

In this article

Checks if the result has multiple candidates.

Return

bool True if there are multiple candidates, false otherwise.

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.