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
inlineDataParts → Iterable<InlineDataPart>
The inline data parts of the first candidate in candidates, if any.
no setter
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 first part of the first of candidates, if any.
no setter
thoughtSummary → String?
The thought summary of the first candidate in candidates, if any.
no setter
usageMetadata → UsageMetadata?
Meta data for the response
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