AgentInvocation class final
One entry into the tool surface. Immutable once minted; widening requires a new invocation minted by a new user action.
Constructors
- AgentInvocation.mint({required AgentScope scope, int stepBudget = defaultStepBudget, Duration timeBudget = defaultTimeBudget})
-
An invocation without execution — the ordinary one.
factory
- AgentInvocation.withExecution({required AgentExecutionGrant grant, required String residualRiskShown, required AgentScope scope, int stepBudget = defaultStepBudget, Duration timeBudget = defaultTimeBudget})
-
An invocation with execution — an explicit, per-invocation user act.
factory
Properties
- allowExecution → bool
-
False unless minted by AgentInvocation.withExecution.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invocationId → String
-
For correlating the audit entries of one invocation.
final
- origin → AgentOrigin
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → AgentScope
-
What this invocation may touch, read by the one guard for every target
of every call.
final
- stepBudget → int
-
How many mutations a tool-driven program run may apply, and how long it
may take. Exceeding either aborts the run and rolls it back.
final
- timeBudget → Duration
-
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
Constants
- defaultStepBudget → const int
- defaultTimeBudget → const Duration