TextCompletion class final

Output text returned from a model.

Constructors

TextCompletion({String output = '', List<SafetyRating> safetyRatings = const [], CitationMetadata? citationMetadata})
TextCompletion.fromJson(Object? j)
factory

Properties

citationMetadata → CitationMetadata?
Output only. Citation information for model-generated output in this TextCompletion.
final
hashCode → int
The hash code for this object.
no setterinherited
output → String
Output only. The generated text returned from the model.
final
qualifiedName → String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safetyRatings → List<SafetyRating>
Ratings for the safety of a response.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String