Skip to main content

Module subagent

Module subagent 

Source
Expand description

§Subagent Manager

Spawns independent agent tasks in the background, each with its own session state and tool registry but sharing the parent’s LLM port.

§Design

  • Each subagent runs in its own tokio::spawn task
  • Results are delivered via tokio::sync::oneshot
  • Recursive spawning is prevented by always denying subagent/spawn
  • Cancellation is supported via CancellationToken

Structs§

DefaultSubagentManager
Default subagent manager implementation.
SubagentToolPort
Subagent tool port — exposes subagent/spawn as a callable tool.