pub struct Liaison { /* private fields */ }Expand description
Liaison’s A2A agent: what a peer reaches, over a link or over HTTP. It keeps nothing of its own: every answer is read from the Registry.
Implementations§
Trait Implementations§
Source§impl Agent for Liaison
impl Agent for Liaison
Source§fn agent_card(&self, caller: &Caller<'_>) -> AgentCard
fn agent_card(&self, caller: &Caller<'_>) -> AgentCard
The card this agent shows a caller. Its
capabilities.streaming and
capabilities.extendedAgentCard decide which operations the server lets through.Source§fn send_message(
&self,
caller: &Caller<'_>,
request: SendMessageRequest,
) -> Result<SendMessageResponse, A2aError>
fn send_message( &self, caller: &Caller<'_>, request: SendMessageRequest, ) -> Result<SendMessageResponse, A2aError>
SendMessage. Read moreSource§fn send_streaming_message(
&self,
caller: &Caller<'_>,
request: SendMessageRequest,
) -> Result<Events, A2aError>
fn send_streaming_message( &self, caller: &Caller<'_>, request: SendMessageRequest, ) -> Result<Events, A2aError>
SendStreamingMessage. The first item is the task or the message. Read moreSource§fn get_task(
&self,
caller: &Caller<'_>,
request: GetTaskRequest,
) -> Result<Task, A2aError>
fn get_task( &self, caller: &Caller<'_>, request: GetTaskRequest, ) -> Result<Task, A2aError>
GetTask. Read moreSource§fn list_tasks(
&self,
caller: &Caller<'_>,
request: ListTasksRequest,
) -> Result<ListTasksResponse, A2aError>
fn list_tasks( &self, caller: &Caller<'_>, request: ListTasksRequest, ) -> Result<ListTasksResponse, A2aError>
ListTasks: only this caller’s tasks, most recently updated first. Read moreSource§fn cancel_task(
&self,
caller: &Caller<'_>,
request: CancelTaskRequest,
) -> Result<Task, A2aError>
fn cancel_task( &self, caller: &Caller<'_>, request: CancelTaskRequest, ) -> Result<Task, A2aError>
CancelTask. Read moreSource§fn subscribe_to_task(
&self,
caller: &Caller<'_>,
request: SubscribeToTaskRequest,
) -> Result<Events, A2aError>
fn subscribe_to_task( &self, caller: &Caller<'_>, request: SubscribeToTaskRequest, ) -> Result<Events, A2aError>
SubscribeToTask. The first item is the task as it is now. Read more§fn get_extended_agent_card(
&self,
caller: &Caller<'_>,
request: GetExtendedAgentCardRequest,
) -> Result<AgentCard, A2aError>
fn get_extended_agent_card( &self, caller: &Caller<'_>, request: GetExtendedAgentCardRequest, ) -> Result<AgentCard, A2aError>
GetExtendedAgentCard, reached only when the card declares one. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Liaison
impl !UnwindSafe for Liaison
impl Freeze for Liaison
impl Send for Liaison
impl Sync for Liaison
impl Unpin for Liaison
impl UnsafeUnpin for Liaison
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.