Candidate class
A piece of a response from the model. Contains safety ratings, citation metadata, and an optional finish reason in addition to the content of the response.
Constructors
-
Candidate({required Content content, required List<
SafetyRating> safetyRatings, required List<CitationMetadata> citationMetadata, FinishReason? finishReason})
Properties
-
citationMetadata
→ List<
CitationMetadata> -
final
- content → Content
-
final
- finishReason → FinishReason?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
safetyRatings
→ List<
SafetyRating> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited