pub struct AgentRegistry { /* private fields */ }Expand description
Agent registry for discovery and lookup
Implementations§
Source§impl AgentRegistry
impl AgentRegistry
Sourcepub async fn unregister(&self, agent_id: &str) -> AcpResult<()>
pub async fn unregister(&self, agent_id: &str) -> AcpResult<()>
Unregister an agent
Sourcepub async fn find_by_capability(
&self,
capability: &str,
) -> AcpResult<Vec<AgentInfo>>
pub async fn find_by_capability( &self, capability: &str, ) -> AcpResult<Vec<AgentInfo>>
Find agents by capability
Sourcepub async fn list_online(&self) -> AcpResult<Vec<AgentInfo>>
pub async fn list_online(&self) -> AcpResult<Vec<AgentInfo>>
List online agents
Trait Implementations§
Source§impl Clone for AgentRegistry
impl Clone for AgentRegistry
Source§fn clone(&self) -> AgentRegistry
fn clone(&self) -> AgentRegistry
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 moreAuto Trait Implementations§
impl Freeze for AgentRegistry
impl !RefUnwindSafe for AgentRegistry
impl Send for AgentRegistry
impl Sync for AgentRegistry
impl Unpin 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