pub struct SpawnConfig {
pub max_spawned_agents: u32,
pub tool_allowlist: Vec<String>,
pub max_turns: usize,
pub max_tokens: u32,
pub max_total_tokens: u64,
}Expand description
Configuration for dynamic agent spawning via spawn_agent.
Controls security boundaries: which tools spawned agents may use, how many can be created, and their token budgets.
Defined in core types so the agent core can reference it without
pulling in the umbrella’s full config module. Re-exported from
heartbit::config.
Fields§
§max_spawned_agents: u32Maximum number of agents that can be spawned per orchestrator run.
tool_allowlist: Vec<String>Allowlist of tool names that spawned agents may use. Only builtin tools from this list are available; unknown names are rejected at build time.
max_turns: usizeMaximum turns per spawned agent.
max_tokens: u32Maximum tokens per LLM call for spawned agents.
max_total_tokens: u64Cumulative token budget across ALL spawned agents in a single run.
Trait Implementations§
Source§impl Clone for SpawnConfig
impl Clone for SpawnConfig
Source§fn clone(&self) -> SpawnConfig
fn clone(&self) -> SpawnConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnConfig
impl Debug for SpawnConfig
Source§impl<'de> Deserialize<'de> for SpawnConfig
impl<'de> Deserialize<'de> for SpawnConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpawnConfig
impl RefUnwindSafe for SpawnConfig
impl Send for SpawnConfig
impl Sync for SpawnConfig
impl Unpin for SpawnConfig
impl UnsafeUnpin for SpawnConfig
impl UnwindSafe for SpawnConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more