pub struct Dispatched {
pub tool_result: ContentBlock,
pub record: ToolCallRecord,
pub fatal: Option<String>,
}Expand description
The outcome of one Registry::dispatch: both the history and report views,
plus a fatal signal.
tool_result is always present and paired to the call id — even on a fatal
error — so the transcript-validity invariant holds regardless of outcome
(ADR-0004). A Some(fatal) tells the loop to append the result and then abort.
Fields§
§tool_result: ContentBlockThe tool_result block to append to history (paired to the call id).
record: ToolCallRecordThe structured record for the report’s tool_calls[].
fatal: Option<String>Some(message) iff the tool returned ToolError::Fatal: append, then abort.
Trait Implementations§
Source§impl Clone for Dispatched
impl Clone for Dispatched
Source§fn clone(&self) -> Dispatched
fn clone(&self) -> Dispatched
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 moreSource§impl Debug for Dispatched
impl Debug for Dispatched
Source§impl PartialEq for Dispatched
impl PartialEq for Dispatched
impl StructuralPartialEq for Dispatched
Auto Trait Implementations§
impl Freeze for Dispatched
impl RefUnwindSafe for Dispatched
impl Send for Dispatched
impl Sync for Dispatched
impl Unpin for Dispatched
impl UnsafeUnpin for Dispatched
impl UnwindSafe for Dispatched
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