AgentRun class

The outcome of Agent.run.

Constructors

AgentRun({required String answer, required List<AgentStep> steps, required List<ChatMessage> transcript, required ChatUsage usage, bool exhausted = false})
Creates a run.
const

Properties

answer → String
The model's final answer.
final
exhausted → bool
True when the loop hit Agent.maxSteps with the model still calling tools, so answer may be incomplete.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → List<AgentStep>
Every tool call, in order.
final
transcript → List<ChatMessage>
The whole conversation, ready to continue with.
final
usage → ChatUsage
Token usage, summed over every round trip.
final

Methods

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

Operators

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