Skip to main content

Module subagents

Module subagents 

Source
Expand description

Subagents on the durable task journal. An rlm.spawn child runs as a child conversation of the session’s durable runtime (harness::chat::children: an ultron.child task owning its conversation), so its model calls and cells are as durable as the root’s: a worker that dies leaves it to the next one, which resumes it (a pinned request is resent, a running cell reports interrupted) and reattaches the delegation host’s task to it.

The delegation host keeps its task journal in the session, where the TypeScript product keeps it (createSessionTaskStore: value ultron.tasks / root), so finished results stay collectable after a restart, and rlm.results(), rlm.collect and rlm.list_subagents() read the same tasks.

Structs§

DurableChildren
Subagents as child conversations of the session’s durable runtime.
SessionUsageStore
The usage ledger’s document (ultron.usage / root), which the operation journal also writes: each run counts its model turns there as it commits them. A ledger write keeps those counts: a root’s turns are the stored ones when they are ahead of the ledger’s.

Constants§

CONTRACTS_NAMESPACE
The contract (role, contract, hop) of each subagent spawned with one, a session value per task id as delegation::host::Delegation::contract_of describes it (Rust-only, like the names): a child reattached after a restart is still held to it. Sessions without these values reattach their children unchecked, as before.
CONVERSATION_LANE_PREFIX
The lane of another root conversation of the session (ultron.conversation.<id>).
NAMES_NAMESPACE
The rlm.spawn(name=...) of each subagent, a session value per task id (Rust-only: the task journal and the child task keep no name), so a revived subagent keeps its name.

Functions§

subagent_name
The name subagent task_id was spawned with, if this session recorded it.
unfinished
The subagent tasks the stored journal holds unfinished (read before the host reopens it, which records them interrupted).
value_store
A document kept as one session value (createSessionTaskStore, createSessionDefinitionStore) of a session no worker hands over (an ultron claude server’s).