pub struct SubagentRoleCatalog { /* private fields */ }Expand description
Validated catalog of built-in and configured subagent roles plus global defaults.
Implementations§
Source§impl SubagentRoleCatalog
impl SubagentRoleCatalog
Sourcepub fn builtin() -> Self
pub fn builtin() -> Self
Builds the default catalog containing Merry’s 3 built-in roles:
explore, coder, and review.
Sourcepub fn with_default_override(
self,
default_override: SubagentDefaultOverride,
) -> Self
pub fn with_default_override( self, default_override: SubagentDefaultOverride, ) -> Self
Replaces the [subagents.default] override layer.
Sourcepub fn default_override(&self) -> &SubagentDefaultOverride
pub fn default_override(&self) -> &SubagentDefaultOverride
Returns the configured [subagents.default] override layer.
Sourcepub fn apply_role_overlay(
&mut self,
name: &str,
overlay: SubagentRoleOverlay,
) -> Result<(), SubagentRoleError>
pub fn apply_role_overlay( &mut self, name: &str, overlay: SubagentRoleOverlay, ) -> Result<(), SubagentRoleError>
Applies one role overlay on top of an existing role or its declared base
role (defaulting to coder for new custom roles).
Sourcepub fn apply_toggles(
&mut self,
toggles: &BTreeMap<String, bool>,
) -> Result<(), SubagentRoleError>
pub fn apply_toggles( &mut self, toggles: &BTreeMap<String, bool>, ) -> Result<(), SubagentRoleError>
Applies [subagents.toggle] flags for known roles.
Sourcepub fn role(&self, name: &str) -> Option<&SubagentRoleSpec>
pub fn role(&self, name: &str) -> Option<&SubagentRoleSpec>
Looks up a role by name.
Sourcepub fn enabled_role_summaries(&self) -> Vec<(String, String)>
pub fn enabled_role_summaries(&self) -> Vec<(String, String)>
Returns (name, description) summaries for all enabled roles in deterministic order.
Trait Implementations§
Source§impl Clone for SubagentRoleCatalog
impl Clone for SubagentRoleCatalog
Auto Trait Implementations§
impl !RefUnwindSafe for SubagentRoleCatalog
impl !UnwindSafe for SubagentRoleCatalog
impl Forget for SubagentRoleCatalog
impl Freeze for SubagentRoleCatalog
impl Move for SubagentRoleCatalog
impl Send for SubagentRoleCatalog
impl Sync for SubagentRoleCatalog
impl Unpin for SubagentRoleCatalog
impl UnsafeUnpin for SubagentRoleCatalog
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