Skip to main content

Module subagent

Module subagent 

Source
Expand description

Dynamic subagent definitions, sessions, and management tools.

Subagents let an engine delegate focused work to named worker agents with their own instructions, allowed tools, resource tags, optional output schemas, and optional long-lived session state. This module also owns session compaction and background progress forwarding for those workers.

Structs§

BackgroundTaskInfo
Metadata tracked for a background task running inside a subagent session.
ExecutionIdentity
Stable worker instance identity, independent of its reusable definition and session alias.
SubAgent
Configurable worker agent that can be registered at runtime.
SubAgentArgs
Arguments used to run a subagent.
SubAgentCheckpoint
Idle-only snapshot. It contains no provider raw history or executable permissions.
SubAgentCheckpoints
Optional host state enabling checkpoint persistence and idle-only restoration.
SubAgentConversationRecorder
Persistent conversation recorder used by subagents when installed in context state.
SubAgentEvent
Compact event; full conversation history never enters the event channel.
SubAgentEvents
Result of an event read or bounded wait.
SubAgentHandoff
Explicit, single-generation inherited context. Install on the invocation context; subagents consume it without forwarding it automatically to their own children.
SubAgentLimits
Host policy shared by a root execution and all of its workers.
SubAgentManager
Tool and registry for creating, updating, loading, and running subagents.
SubAgentManagerArgs
Arguments accepted by the subagent manager tool.
SubAgentMessage
Attributed worker data. The envelope is not a new user authorization.
SubAgentScope
Host-created task scope. Install a clone in context state to continue the same root task.
SubAgentSetManager
Type-indexed collection of subagent registries.
SubSession
Long-lived conversation session for a subagent.
SubSessionStatus
Live progress snapshot for a subagent session.
SubSessions
Registry of active subagent sessions for one subagent definition.

Enums§

MessageDelivery
Whether input may start an idle worker.
SubAgentEventKind
Lifecycle events distinguish a completed work turn from a closed session.
WaitMode
Condition used by SubAgentScope::wait.

Traits§

CheckpointStore
Storage for resumable idle snapshots, separate from audit conversation records.
ConversationRecords
Persistence seam for subagent conversation records.
SubAgentSet
Object-safe registry interface for groups of subagents.