pub struct SpawnerConfig {
pub shared_llms: bool,
pub shared_storage: Option<StorageConfig>,
pub shared_context: HashMap<String, Value>,
pub max_agents: Option<usize>,
pub name_prefix: Option<String>,
pub templates: HashMap<String, TemplateSource>,
pub allowed_tools: Option<Vec<String>>,
pub auto_spawn: Vec<AutoSpawnEntry>,
pub orchestration_tools: OrchestrationToolsConfig,
}Expand description
Configuration for dynamic agent spawning declared in the spawner: YAML section.
Fields§
When true, spawned agents reuse the parent agent’s LLM connections.
Shared storage backend for all spawned agents.
Context values injected into every spawned agent.
max_agents: Option<usize>Maximum number of agents that can be spawned.
name_prefix: Option<String>Auto-naming prefix for spawned agents (e.g. “npc_” -> “npc_001”).
templates: HashMap<String, TemplateSource>Named YAML templates – inline strings or file path references.
allowed_tools: Option<Vec<String>>Tool names that spawned agents are allowed to use.
auto_spawn: Vec<AutoSpawnEntry>Agents to create at startup and register in the AgentRegistry.
orchestration_tools: OrchestrationToolsConfigRegister orchestration tools (route_to_agent, group_discussion, etc.).
Implementations§
Source§impl SpawnerConfig
impl SpawnerConfig
Sourcepub fn is_configured(&self) -> bool
pub fn is_configured(&self) -> bool
Returns true if any spawner configuration is present.
Trait Implementations§
Source§impl Clone for SpawnerConfig
impl Clone for SpawnerConfig
Source§fn clone(&self) -> SpawnerConfig
fn clone(&self) -> SpawnerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SpawnerConfig
impl Debug for SpawnerConfig
Source§impl Default for SpawnerConfig
impl Default for SpawnerConfig
Source§fn default() -> SpawnerConfig
fn default() -> SpawnerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpawnerConfig
impl<'de> Deserialize<'de> for SpawnerConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpawnerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpawnerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SpawnerConfig
impl Serialize for SpawnerConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SpawnerConfig
impl RefUnwindSafe for SpawnerConfig
impl Send for SpawnerConfig
impl Sync for SpawnerConfig
impl Unpin for SpawnerConfig
impl UnsafeUnpin for SpawnerConfig
impl UnwindSafe for SpawnerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.