pub struct TapIntegration { /* private fields */ }Expand description
TAP ecosystem integration - thin wrapper around TapNode
Implementations§
Source§impl TapIntegration
impl TapIntegration
Sourcepub async fn new(
agent_did: Option<&str>,
tap_root: Option<&str>,
agent: Option<Arc<TapAgent>>,
) -> Result<Self>
pub async fn new( agent_did: Option<&str>, tap_root: Option<&str>, agent: Option<Arc<TapAgent>>, ) -> Result<Self>
Create new TAP integration using TapNode with agent registration
Sourcepub async fn new_for_testing(
tap_root: Option<&str>,
agent_did: &str,
) -> Result<Self>
pub async fn new_for_testing( tap_root: Option<&str>, agent_did: &str, ) -> Result<Self>
Create new TAP integration for testing with custom paths
Sourcepub fn storage_path(&self) -> Option<&PathBuf>
pub fn storage_path(&self) -> Option<&PathBuf>
Get storage path (if available)
Sourcepub fn storage(&self) -> Option<&Arc<Storage>>
pub fn storage(&self) -> Option<&Arc<Storage>>
Get storage reference (if available) - uses the primary node storage
Sourcepub async fn storage_for_agent(&self, agent_did: &str) -> Result<Arc<Storage>>
pub async fn storage_for_agent(&self, agent_did: &str) -> Result<Arc<Storage>>
Get storage for a specific agent DID This delegates to TAP Node’s AgentStorageManager for proper agent isolation
Sourcepub async fn list_agents(&self) -> Result<Vec<AgentInfo>>
pub async fn list_agents(&self) -> Result<Vec<AgentInfo>>
List all registered agents (from storage and in-memory registry)
Auto Trait Implementations§
impl !RefUnwindSafe for TapIntegration
impl !UnwindSafe for TapIntegration
impl Freeze for TapIntegration
impl Send for TapIntegration
impl Sync for TapIntegration
impl Unpin for TapIntegration
impl UnsafeUnpin for TapIntegration
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