pub struct RemoteA2aAgent { /* private fields */ }Expand description
A remote agent accessible via the A2A protocol.
This agent delegates execution to a remote service via HTTP, converting between the local agent framework’s events and the A2A protocol wire format.
Implementations§
Source§impl RemoteA2aAgent
impl RemoteA2aAgent
Sourcepub fn new(name: impl Into<String>, agent_card: AgentCard) -> Self
pub fn new(name: impl Into<String>, agent_card: AgentCard) -> Self
Create a new remote A2A agent from an agent card.
Sourcepub fn with_config(self, config: RemoteA2aAgentConfig) -> Self
pub fn with_config(self, config: RemoteA2aAgentConfig) -> Self
Set the configuration.
Sourcepub fn agent_card(&self) -> &AgentCard
pub fn agent_card(&self) -> &AgentCard
Returns the remote agent’s card.
Trait Implementations§
Source§impl Clone for RemoteA2aAgent
impl Clone for RemoteA2aAgent
Source§fn clone(&self) -> RemoteA2aAgent
fn clone(&self) -> RemoteA2aAgent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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§
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