GenerateContentResponse class final
Response from the model; supports multiple candidates.
Constructors
-
GenerateContentResponse(List<
Candidate> candidates, PromptFeedback? promptFeedback, {UsageMetadata? usageMetadata})
Properties
-
candidates
→ List<
Candidate> -
Candidate responses from the model.
final
-
functionCalls
→ Iterable<
FunctionCall> -
The function call parts of the first candidate in candidates, if any.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- promptFeedback → PromptFeedback?
-
Returns the prompt's feedback related to the content filters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
The text content of the text parts of the first of candidates, if any.
no setter
- usageMetadata → UsageMetadata?
-
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