pub struct CodingSubagentsConfig { /* private fields */ }Expand description
Typed subagent composition policy for a parent coding runtime.
Implementations§
Source§impl CodingSubagentsConfig
impl CodingSubagentsConfig
Sourcepub fn enabled(limits: SubagentConfig) -> Self
pub fn enabled(limits: SubagentConfig) -> Self
Installs and enables subagent tools with the supplied runtime limits.
Sourcepub fn runtime_controlled(enabled: bool, limits: SubagentConfig) -> Self
pub fn runtime_controlled(enabled: bool, limits: SubagentConfig) -> Self
Installs subagent tools while leaving their runtime admission controlled
by enabled.
Sourcepub fn with_role_catalog(self, role_catalog: SubagentRoleCatalog) -> Self
pub fn with_role_catalog(self, role_catalog: SubagentRoleCatalog) -> Self
Attaches a customized role catalog (built-in + .merry/roles/*.toml +
[subagents.roles.*] + [subagents.default] + [subagents.toggle]).
Sourcepub const fn is_installed(&self) -> bool
pub const fn is_installed(&self) -> bool
Returns whether the parent should advertise subagent tools.
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Returns whether new subagent work is enabled by the parent policy.
Sourcepub const fn limits(&self) -> SubagentConfig
pub const fn limits(&self) -> SubagentConfig
Returns the runtime-owned subagent limits.
Sourcepub fn role_catalog(&self) -> &SubagentRoleCatalog
pub fn role_catalog(&self) -> &SubagentRoleCatalog
Returns the configured role catalog.
Trait Implementations§
Source§impl Clone for CodingSubagentsConfig
impl Clone for CodingSubagentsConfig
Auto Trait Implementations§
impl !RefUnwindSafe for CodingSubagentsConfig
impl !UnwindSafe for CodingSubagentsConfig
impl Forget for CodingSubagentsConfig
impl Freeze for CodingSubagentsConfigwhere
*const ArcInner<dyn ModelProvider> is !null: Freeze,
PhantomData<ArcInner<dyn ModelProvider>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, SubagentRoleSpec> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SubagentRoleSpec)>>: Freeze,
impl Move for CodingSubagentsConfig
impl Send for CodingSubagentsConfigwhere
Arc<dyn ModelProvider>: Send,
RawVecInner: Send,
NodeRef<Owned, String, SubagentRoleSpec, LeafOrInternal>: Send,
BoxRaw<(String, SubagentRoleSpec)>: Send,
impl Sync for CodingSubagentsConfigwhere
Arc<dyn ModelProvider>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, SubagentRoleSpec, LeafOrInternal>: Sync,
BoxRaw<(String, SubagentRoleSpec)>: Sync,
impl Unpin for CodingSubagentsConfigwhere
Arc<dyn ModelProvider>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, SubagentRoleSpec> is !null: Unpin,
Box<(String, SubagentRoleSpec)>: Unpin,
impl UnsafeUnpin for CodingSubagentsConfigwhere
*const ArcInner<dyn ModelProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ModelProvider>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, SubagentRoleSpec> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SubagentRoleSpec)>>: UnsafeUnpin,
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