pub struct ElicitationDispatch {
pub id: String,
pub approver: Option<String>,
pub intent_id: Option<String>,
pub expires_at: Option<String>,
}Expand description
What ElicitationInvoker::dispatch returns — the correlation id
plus the pending metadata the evaluator surfaces into the bag
(elicitation.*) and the host echoes in the JSON-RPC -32120
pending entry.
Fields§
§id: StringServer-side id the agent echoes on retry. Keys the
{requester, args, scope, original_request_id} record.
approver: Option<String>Resolved approver identity (the from attr resolved at dispatch,
e.g. the manager’s sub). None when the channel resolves the
responder only at validation time. Surfaced as
elicitation.approver.
intent_id: Option<String>Registered intent id (lodging-intent binding) when the channel
supports it. Surfaced as elicitation.intent_id.
expires_at: Option<String>When the elicitation expires (RFC 3339). None defers to the
channel plugin’s configured default.
Trait Implementations§
Source§impl Clone for ElicitationDispatch
impl Clone for ElicitationDispatch
Source§fn clone(&self) -> ElicitationDispatch
fn clone(&self) -> ElicitationDispatch
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 ElicitationDispatch
impl RefUnwindSafe for ElicitationDispatch
impl Send for ElicitationDispatch
impl Sync for ElicitationDispatch
impl Unpin for ElicitationDispatch
impl UnsafeUnpin for ElicitationDispatch
impl UnwindSafe for ElicitationDispatch
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