We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99535e commit c5b632eCopy full SHA for c5b632e
src/Results/DTO/GenerativeAiResult.php
@@ -111,7 +111,7 @@ public function getProviderMetadata(): array
111
*
112
* @return int The total number of candidates.
113
*/
114
- public function getTotalCandidates(): int
+ public function getCandidateCount(): int
115
{
116
return count($this->candidates);
117
}
@@ -125,7 +125,7 @@ public function getTotalCandidates(): int
125
126
public function hasMultipleCandidates(): bool
127
128
- return count($this->candidates) > 1;
+ return $this->getCandidateCount() > 1;
129
130
131
/**
0 commit comments