pub struct SqliteAgentCardRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite implementation of AgentCardRepository
Implementations§
Source§impl SqliteAgentCardRepository
impl SqliteAgentCardRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl AgentCardRepository for SqliteAgentCardRepository
impl AgentCardRepository for SqliteAgentCardRepository
Source§fn get_by_wallet(&self, wallet_address: &str) -> Result<Option<AgentCard>>
fn get_by_wallet(&self, wallet_address: &str) -> Result<Option<AgentCard>>
Get agent card by wallet address
Source§fn list(&self, filter: AgentCardFilter) -> Result<Vec<AgentCard>>
fn list(&self, filter: AgentCardFilter) -> Result<Vec<AgentCard>>
List agent cards with filter
Source§fn verify(
&self,
id: Uuid,
trust_level: TrustLevel,
method: &str,
) -> Result<AgentCard>
fn verify( &self, id: Uuid, trust_level: TrustLevel, method: &str, ) -> Result<AgentCard>
Verify an agent card (set trust level and verification info)
Source§fn discover(&self, filter: AgentCardFilter) -> Result<Vec<AgentCard>>
fn discover(&self, filter: AgentCardFilter) -> Result<Vec<AgentCard>>
Discover agents with specific capabilities
Source§fn create_batch(
&self,
inputs: Vec<CreateAgentCard>,
) -> Result<BatchResult<AgentCard>>
fn create_batch( &self, inputs: Vec<CreateAgentCard>, ) -> Result<BatchResult<AgentCard>>
Create multiple agent cards - partial success allowed
Source§fn create_batch_atomic(
&self,
inputs: Vec<CreateAgentCard>,
) -> Result<Vec<AgentCard>>
fn create_batch_atomic( &self, inputs: Vec<CreateAgentCard>, ) -> Result<Vec<AgentCard>>
Create multiple agent cards - atomic (all-or-nothing)
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteAgentCardRepository
impl !UnwindSafe for SqliteAgentCardRepository
impl Freeze for SqliteAgentCardRepository
impl Send for SqliteAgentCardRepository
impl Sync for SqliteAgentCardRepository
impl Unpin for SqliteAgentCardRepository
impl UnsafeUnpin for SqliteAgentCardRepository
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