AgentRun class abstract final

One agent run: a model-driven sequence of tool calls that is atomic and reversible as a unit.

It adds no mechanism of its own. The run is a proposal under AgentPreviewThenApply over AgentToolContext.runAtomically: the calls write while the model works, so the user sees the result in place while deciding; a refused call is a proposal that cannot be kept; and rejecting is the scope's rollback.

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

Static Methods

dryRun<C extends AgentToolContext>(AgentToolBinding<C> binding, List<({Map<String, Object?> arguments, String name})> steps) → Future<List<AgentRunStep>>
The dry run: performs steps against copies of what the binding's context reaches and reports what each would do, so a preview can say which calls would be refused before anything is written.
execute<C extends AgentToolContext>({required AgentToolBinding<C> binding, required AgentAuditLog audit, required Future<String> drive(AgentToolBinding<C> binding), Future<bool> confirm(AgentRunOutcome preview)?, String label = 'Agent run'}) → Future<AgentRunOutcome>
Runs drive — which asks the model and lets it call tools through binding — as one atomic run, then asks confirm whether to keep it.