TextCompletion class final
Output text returned from a model.
- Inheritance
-
- Object
- ProtoMessage
- TextCompletion
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
outputin thisTextCompletion.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.Durationorgoogle.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 -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String