AiAgentResult class final
The result of an AiAgent.run call.
Constructors
-
AiAgentResult({required String text, required List<
AiChatMessage> messages, required int iterations, AiError? error}) -
const
Properties
- error → AiError?
-
Non-null when the agent hit an error or max iterations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
no setter
- iterations → int
-
How many tool-calling iterations were used.
final
-
messages
→ List<
AiChatMessage> -
The full conversation including tool calls and results.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The accumulated assistant text across all iterations.
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