pub struct RemoteA2aAgent { /* private fields */ }Available on crate feature
server only.Expand description
An agent that communicates with a remote A2A agent
Implementations§
Source§impl RemoteA2aAgent
impl RemoteA2aAgent
pub fn new(config: RemoteA2aConfig) -> RemoteA2aAgent
pub fn builder(name: impl Into<String>) -> RemoteA2aAgentBuilder
Trait Implementations§
Source§impl Agent for RemoteA2aAgent
impl Agent for RemoteA2aAgent
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns a human-readable description of this agent’s purpose.
Source§fn sub_agents(&self) -> &[Arc<dyn Agent>]
fn sub_agents(&self) -> &[Arc<dyn Agent>]
Returns the child agents managed by this agent.
Source§fn run<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Event, AdkError>> + Send>>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
RemoteA2aAgent: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Event, AdkError>> + Send>>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
RemoteA2aAgent: 'async_trait,
Executes the agent and returns a stream of events.
Auto Trait Implementations§
impl Freeze for RemoteA2aAgent
impl RefUnwindSafe for RemoteA2aAgent
impl Send for RemoteA2aAgent
impl Sync for RemoteA2aAgent
impl Unpin for RemoteA2aAgent
impl UnsafeUnpin for RemoteA2aAgent
impl UnwindSafe for RemoteA2aAgent
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