pub struct AgentRegistry { /* private fields */ }Expand description
Registry of available agent types.
Implementations§
Source§impl AgentRegistry
impl AgentRegistry
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create the registry with built-in agent types.
Sourcepub fn get(&self, name: &str) -> Option<&AgentDefinition>
pub fn get(&self, name: &str) -> Option<&AgentDefinition>
Look up an agent definition by type name.
Sourcepub fn register(&mut self, definition: AgentDefinition)
pub fn register(&mut self, definition: AgentDefinition)
Register a custom agent type.
Sourcepub fn list(&self) -> Vec<&AgentDefinition>
pub fn list(&self) -> Vec<&AgentDefinition>
List all available agent types.
Auto Trait Implementations§
impl Freeze for AgentRegistry
impl RefUnwindSafe for AgentRegistry
impl Send for AgentRegistry
impl Sync for AgentRegistry
impl Unpin for AgentRegistry
impl UnsafeUnpin for AgentRegistry
impl UnwindSafe for AgentRegistry
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