pub struct Subagents {
pub allow_freeform: Option<bool>,
pub defaults: SubagentDefaults,
pub templates: BTreeMap<String, SubagentTemplate>,
}Expand description
The subagents: section: what the model may spawn, and how.
Fields§
§allow_freeform: Option<bool>false makes templates the ONLY spawn path — every child the model can
create is a definition the operator reviewed. Default true (freeform
flat-tier spawns keep working; there is no freeform INSTANCE spawn
regardless).
defaults: SubagentDefaultsApplied to every spawn (flat and templated) unless overridden at the template or call site.
templates: BTreeMap<String, SubagentTemplate>Named, operator-authored definitions. A template whose instruction
carries no config-defining directives spawns a flat worker; one that
defines machinery (:::workflow/:::mcp/:::stream/:::config/
:::tools) spawns an instance-tier child. The tier follows from the
text, so it is never declared twice and cannot disagree with itself.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subagents
impl<'de> Deserialize<'de> for Subagents
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
impl StructuralPartialEq for Subagents
Auto Trait Implementations§
impl Freeze for Subagents
impl RefUnwindSafe for Subagents
impl Send for Subagents
impl Sync for Subagents
impl Unpin for Subagents
impl UnsafeUnpin for Subagents
impl UnwindSafe for Subagents
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