pub struct RemoteA2aAgent { /* private fields */ }Expand description
An agent that communicates with a remote A2A agent
Implementations§
Source§impl RemoteA2aAgent
impl RemoteA2aAgent
pub fn new(config: RemoteA2aConfig) -> Self
pub fn builder(name: impl Into<String>) -> RemoteA2aAgentBuilder
Trait Implementations§
Source§impl Agent for RemoteA2aAgent
impl Agent for RemoteA2aAgent
fn name(&self) -> &str
fn description(&self) -> &str
fn sub_agents(&self) -> &[Arc<dyn Agent>]
fn run<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<EventStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RemoteA2aAgent
impl RefUnwindSafe for RemoteA2aAgent
impl Send for RemoteA2aAgent
impl Sync for RemoteA2aAgent
impl Unpin for RemoteA2aAgent
impl UnwindSafe for RemoteA2aAgent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more