pub struct SubagentRegistry { /* private fields */ }Expand description
Registry of available subagent definitions.
Implementations§
Source§impl SubagentRegistry
impl SubagentRegistry
pub fn new() -> Self
pub fn with_builtin_agents() -> Self
pub fn register(&mut self, definition: AgentDefinition)
pub fn get(&self, name: &str) -> Option<&AgentDefinition>
pub fn definitions(&self) -> Vec<&AgentDefinition>
pub fn render_listing(&self) -> String
pub fn load_markdown_file( &mut self, path: impl AsRef<Path>, source: AgentSource, ) -> Result<(), AgentError>
pub fn load_markdown_dir( &mut self, dir: impl AsRef<Path>, source: AgentSource, ) -> Result<(), AgentError>
Trait Implementations§
Source§impl Clone for SubagentRegistry
impl Clone for SubagentRegistry
Source§fn clone(&self) -> SubagentRegistry
fn clone(&self) -> SubagentRegistry
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 SubagentRegistry
impl Debug for SubagentRegistry
Source§impl Default for SubagentRegistry
impl Default for SubagentRegistry
Source§fn default() -> SubagentRegistry
fn default() -> SubagentRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubagentRegistry
impl RefUnwindSafe for SubagentRegistry
impl Send for SubagentRegistry
impl Sync for SubagentRegistry
impl Unpin for SubagentRegistry
impl UnsafeUnpin for SubagentRegistry
impl UnwindSafe for SubagentRegistry
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