AgentOutputStore class final
Session-scoped store of subagent outputs addressable via agent://.
One store is shared by every task tool instance of a session (pass it
through TaskToolConfig.outputs), so ids never collide across calls and
every finished spawn stays addressable.
Constructors
- AgentOutputStore({AgentOutputManager? ids})
-
Creates a store with its own id allocator (
idsinjects a shared or prefixed one — children allocate their own children dot-qualified).
Properties
-
availableIds
→ List<
String> -
All stored ids, in insertion order.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- ids → AgentOutputManager
-
The id allocator backing allocateId.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allocateId(
String requestedBase) → String -
Allocates a unique output id for
requestedBase. -
contains(
String id) → bool -
Whether
idhas stored output. -
get(
String id) → String? -
The stored output for
id;nullwhen unknown. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String id, String content) → void -
Records
contentunderid(later writes replace earlier ones — a schema fix retry updates its item's output). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited