pub enum DispatchOutcome {
Canonical {
result: CanonicalToolResult,
lifecycle: Vec<ToolLifecycleEvent>,
},
Rejected {
tool_action_id: ToolActionId,
code: &'static str,
message: String,
lifecycle: Vec<ToolLifecycleEvent>,
},
RuntimeFailed {
tool_action_id: ToolActionId,
tool_id: Option<ToolId>,
code: String,
lifecycle: Vec<ToolLifecycleEvent>,
},
}Expand description
Outcome of a dispatch attempt.
Variants§
Canonical
Canonical success or declared domain failure (continuation product).
Fields
§
result: CanonicalToolResultValidated result.
§
lifecycle: Vec<ToolLifecycleEvent>Lifecycle events produced (Started + Completed).
Rejected
Invalid/disallowed arguments — rejected tool result, not transaction failure.
Fields
§
tool_action_id: ToolActionIdAction id.
§
lifecycle: Vec<ToolLifecycleEvent>Lifecycle (Started may be omitted when never accepted).
RuntimeFailed
Handler/runtime failure — selects ToolExchangeFailed when policy requires.
Fields
§
tool_action_id: ToolActionIdAction id.
§
lifecycle: Vec<ToolLifecycleEvent>Lifecycle events (may include Started + RuntimeFailed).
Trait Implementations§
Source§impl Clone for DispatchOutcome
impl Clone for DispatchOutcome
Source§fn clone(&self) -> DispatchOutcome
fn clone(&self) -> DispatchOutcome
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 DispatchOutcome
impl RefUnwindSafe for DispatchOutcome
impl Send for DispatchOutcome
impl Sync for DispatchOutcome
impl Unpin for DispatchOutcome
impl UnsafeUnpin for DispatchOutcome
impl UnwindSafe for DispatchOutcome
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