pub struct HandoffOptions {
pub run_id: Option<String>,
pub task_id: String,
pub from_agent_id: String,
pub to_agent_id: String,
pub content: String,
pub requested_action: String,
pub metadata: Option<Value>,
pub user_id: Option<String>,
pub await_verdict: bool,
pub timeout_s: f64,
}Fields§
§run_id: Option<String>§task_id: String§from_agent_id: String§to_agent_id: String§content: String§requested_action: String§metadata: Option<Value>§user_id: Option<String>§await_verdict: boolWhen true, handoff() polls (2s interval) for a feedback entry
referencing the new handoff_id and returns the verdict as
Value::String — or Value::Null when timeout_s elapses first.
timeout_s: f64Verdict polling timeout in seconds (default 30). Only used when
await_verdict is true.
Implementations§
Trait Implementations§
Source§impl Clone for HandoffOptions
impl Clone for HandoffOptions
Source§fn clone(&self) -> HandoffOptions
fn clone(&self) -> HandoffOptions
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 HandoffOptions
impl RefUnwindSafe for HandoffOptions
impl Send for HandoffOptions
impl Sync for HandoffOptions
impl Unpin for HandoffOptions
impl UnsafeUnpin for HandoffOptions
impl UnwindSafe for HandoffOptions
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