AgentHandle class
A registered agent's connection to the orchestrator.
Constructors
-
AgentHandle({required AgentProfile profile, required ChatClient chatClientFactory(), required Future<
void> invalidateSnapshot()}) - Creates a handle. Constructed by the orchestrator.
Properties
- chatClient → ChatClient
-
The chat client this agent runs on. Resolving a request through it
activates the agent — the orchestrator makes its KV state resident
first. Created lazily; requires a loaded model.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- profile → AgentProfile
-
The profile this handle was registered with.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
invalidateSnapshot(
) → Future< void> - Drops the agent's saved KV snapshot and stash; its next turn starts from a fresh prefill.
-
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