pub struct ReceivedHandoff {
pub handoff_id: Option<String>,
pub task_id: Option<String>,
pub from_agent_id: Option<String>,
pub to_agent_id: String,
pub requested_action: Option<String>,
pub content: Option<String>,
pub created_at: Option<String>,
pub metadata: Value,
pub evidence: Value,
}Expand description
A handoff addressed to the querying agent, as surfaced by
receive_handoffs. Thin typed wrapper over the raw query evidence —
the well-known metadata fields are lifted out, and the untouched
evidence item is kept in evidence.
Fields§
§handoff_id: Option<String>§task_id: Option<String>§from_agent_id: Option<String>§to_agent_id: String§requested_action: Option<String>§content: Option<String>§created_at: Option<String>§metadata: ValueParsed handoff metadata object.
evidence: ValueThe raw query evidence item this wrapper was built from.
Trait Implementations§
Source§impl Clone for ReceivedHandoff
impl Clone for ReceivedHandoff
Source§fn clone(&self) -> ReceivedHandoff
fn clone(&self) -> ReceivedHandoff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReceivedHandoff
impl RefUnwindSafe for ReceivedHandoff
impl Send for ReceivedHandoff
impl Sync for ReceivedHandoff
impl Unpin for ReceivedHandoff
impl UnsafeUnpin for ReceivedHandoff
impl UnwindSafe for ReceivedHandoff
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request