Skip to main content

AgentUpstreamSource

Trait AgentUpstreamSource 

Source
pub trait AgentUpstreamSource: Send + Sync {
    // Required method
    fn list_upstreams(
        &self,
    ) -> impl Future<Output = Vec<AgentUpstreamEntry>> + Send;
}
Expand description

Trait for providing upstream agent metadata.

Implemented by protocol-specific registries (e.g. A2A) that can report connection-level details not captured in the generic [AgentEntry].

Required Methods§

Source

fn list_upstreams(&self) -> impl Future<Output = Vec<AgentUpstreamEntry>> + Send

List upstream agents with connection status.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: AgentUpstreamSource> AgentUpstreamSource for Arc<T>

Implementors§