Skip to main content

Module host

Module host 

Source
Expand description

Session host for nested agent runs (dynamic multi-agent delegation).

§Limits (fail-closed)

  • agent_budget — absolute number of admitted spawns for this host
  • max_spawn_depth — max nesting index (depth on SpawnOpts); depth >= max rejects
  • max_concurrent_children — simultaneous in-flight spawns (try-acquire; no queue)

Structs§

AgentRunResult
Result of a nested agent run.
InProcessHost
In-process host: nested TurnRuntime with shared sampler, tool pool, and limits.
SpawnOpts
Options for spawning a nested agent.

Constants§

DEFAULT_MAX_CONCURRENT_CHILDREN
Default max concurrent in-flight nested agents.
DEFAULT_MAX_SPAWN_DEPTH
Default max nesting depth for nested agents (0..DEFAULT_MAX_SPAWN_DEPTH).

Traits§

SessionHost
Host capable of spawning nested agents.