ChatResult class

Available extensions
Annotations
  • @artifact

Constructors

ChatResult.new({required AgentMessage message, required Rational realCost, ChatFinishReason finishReason = ChatFinishReason.unspecified, Map<String, dynamic> metadata = const {}, ChatUsage usage = const ChatUsage()})
const

Properties

finishReason ChatFinishReason
final
hashCode int
The hash code for this object.
no setterinherited
message AgentMessage
final
metadata Map<String, dynamic>
final
realCost → Rational
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage ChatUsage
final

Methods

copyWith({_e? message, _y? realCost, _z? finishReason, _o resetFinishReason = _F, _1? metadata, _o resetMetadata = _F, _j? usage, _o resetUsage = _F}) → _i

Available on _i, provided by the $ChatResult extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool pretty = _F}) → _3

Available on _i, provided by the $ChatResult extension

toMap() → _1

Available on _i, provided by the $ChatResult extension

toString() String
A string representation of this object.
inherited

Operators

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