LanguageModelResult<TOutput extends Object> class abstract

Result returned by the model.

Implementers
Annotations
  • @immutable

Constructors

LanguageModelResult.new({required TOutput output, required FinishReason finishReason, required Map<String, dynamic> metadata, required LanguageModelUsage usage, String? id})
Creates a new language model result instance.

Properties

finishReason FinishReason
The reason the model stopped generating tokens.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Result id.
final
metadata Map<String, dynamic>
Other metadata about the generation.
final
output → TOutput
Generated output.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage LanguageModelUsage
Usage stats for the generation.
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