pub struct InMemoryAgentRegistry { /* private fields */ }Implementations§
Source§impl InMemoryAgentRegistry
impl InMemoryAgentRegistry
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, id: &str) -> Option<AgentDefinition>
pub fn ids(&self) -> impl Iterator<Item = &String>
pub fn register( &mut self, agent_id: impl Into<String>, def: AgentDefinition, ) -> Result<(), AgentRegistryError>
pub fn upsert(&mut self, agent_id: impl Into<String>, def: AgentDefinition)
pub fn extend_upsert(&mut self, defs: HashMap<String, AgentDefinition>)
pub fn extend_registry( &mut self, other: &dyn AgentRegistry, ) -> Result<(), AgentRegistryError>
Trait Implementations§
Source§impl AgentCatalog for InMemoryAgentRegistry
impl AgentCatalog for InMemoryAgentRegistry
fn len(&self) -> usize
fn get(&self, id: &str) -> Option<ResolvedAgent>
fn ids(&self) -> Vec<String>
fn snapshot(&self) -> HashMap<String, ResolvedAgent>
fn is_empty(&self) -> bool
fn descriptor(&self, id: &str) -> Option<AgentDescriptor>
fn descriptors(&self) -> HashMap<String, AgentDescriptor>
Source§impl Clone for InMemoryAgentRegistry
impl Clone for InMemoryAgentRegistry
Source§fn clone(&self) -> InMemoryAgentRegistry
fn clone(&self) -> InMemoryAgentRegistry
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 InMemoryAgentRegistry
impl Debug for InMemoryAgentRegistry
Source§impl Default for InMemoryAgentRegistry
impl Default for InMemoryAgentRegistry
Source§fn default() -> InMemoryAgentRegistry
fn default() -> InMemoryAgentRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryAgentRegistry
impl RefUnwindSafe for InMemoryAgentRegistry
impl Send for InMemoryAgentRegistry
impl Sync for InMemoryAgentRegistry
impl Unpin for InMemoryAgentRegistry
impl UnwindSafe for InMemoryAgentRegistry
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