GenerateContentResponse class

Represents a response from the model.

Constructors

GenerateContentResponse({required List<Candidate> candidates, PromptFeedback? promptFeedback})

Properties

candidates → List<Candidate>
A list of possible responses generated from the model
final
hashCode → int
The hash code for this object.
no setterinherited
promptFeedback → PromptFeedback?
Optional feedback for the given prompt. When streaming, it's only populated in the first response.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String?
Convenience field representing the first text part in the response, if it exists.
no setter

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