pub struct SqliteAgentRegistry { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AgentRegistry for SqliteAgentRegistry
impl AgentRegistry for SqliteAgentRegistry
Source§fn register<'life0, 'async_trait>(
&'life0 self,
card: AgentCard,
) -> Pin<Box<dyn Future<Output = Result<AgentId, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register<'life0, 'async_trait>(
&'life0 self,
card: AgentCard,
) -> Pin<Box<dyn Future<Output = Result<AgentId, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register a new agent with the given Agent Card.
Source§fn get<'life0, 'async_trait>(
&'life0 self,
id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<Option<Agent>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<Option<Agent>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get an agent by its internal id.
Source§fn get_by_uri<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Agent>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_by_uri<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Agent>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get an agent by its URI (e.g. “jamjet://myorg/research-analyst”).
Source§fn find<'life0, 'async_trait>(
&'life0 self,
filter: AgentFilter,
) -> Pin<Box<dyn Future<Output = Result<Vec<Agent>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find<'life0, 'async_trait>(
&'life0 self,
filter: AgentFilter,
) -> Pin<Box<dyn Future<Output = Result<Vec<Agent>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find agents matching a filter (by skill, protocol, status).
Source§fn update_status<'life0, 'async_trait>(
&'life0 self,
id: AgentId,
status: AgentStatus,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_status<'life0, 'async_trait>(
&'life0 self,
id: AgentId,
status: AgentStatus,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update an agent’s status.
Source§fn heartbeat<'life0, 'async_trait>(
&'life0 self,
id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn heartbeat<'life0, 'async_trait>(
&'life0 self,
id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Record a heartbeat for an active agent.
Source§fn discover_remote<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Agent, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn discover_remote<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Agent, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Discover a remote A2A agent by fetching its Agent Card from a URL.
Stores the agent in the registry as an external agent.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteAgentRegistry
impl !UnwindSafe for SqliteAgentRegistry
impl Freeze for SqliteAgentRegistry
impl Send for SqliteAgentRegistry
impl Sync for SqliteAgentRegistry
impl Unpin for SqliteAgentRegistry
impl UnsafeUnpin for SqliteAgentRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more