Skip to main content

Module spawn

Module spawn 

Source
Expand description

Spawn module for agent lifecycle management.

Owns the agent stack (Vec) and all lifecycle operations. Single source of truth for agent hierarchy.

Re-exports§

pub use complete_task::CompleteTask;
pub use spawn_agent::SpawnAgent;

Modules§

complete_task
Complete task tool - signals task completion and pops the agent stack.
spawn_agent

Structs§

SpawnModule

Functions§

allowed_agents_for
Returns the set of agents that can be spawned by the given agent. Based on hierarchical chain: can only spawn agents at lower levels.