AgentStep class sealed

One step of an AgentTurn.

Constructors

AgentStep.callTool(String name, [Map<String, Object?> arguments])
Calls the app's method name, in snake_case, with arguments. The session runs it when the run ends.
const
factory
AgentStep.fail(String message)
Ends the run with RUN_ERROR and message.
const
factory
AgentStep.say(String text)
Streams text as one message of the agent.
const
factory
AgentStep.waitFor(Future<void> signal)
Waits for signal before the next step, such as to keep a run open in a test.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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