pub struct BoundedToolInvocationResult {
pub invocation: ToolInvocation,
pub envelope: ToolResultEnvelope,
}Expand description
Bounded result of dispatching one normalized ToolInvocation.
This is the model-visible companion to ToolInvocationResult: dispatch
still runs through the same registry path, but the returned payload is
wrapped in a ToolResultEnvelope so callers can see truncation metadata
and continuation tokens before placing tool output into a prompt.
Fields§
§invocation: ToolInvocationThe normalized invocation that was dispatched.
envelope: ToolResultEnvelopeBounded tool output plus deterministic truncation metadata.
Trait Implementations§
Source§impl Clone for BoundedToolInvocationResult
impl Clone for BoundedToolInvocationResult
Source§fn clone(&self) -> BoundedToolInvocationResult
fn clone(&self) -> BoundedToolInvocationResult
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 BoundedToolInvocationResult
impl Debug for BoundedToolInvocationResult
Source§impl PartialEq for BoundedToolInvocationResult
impl PartialEq for BoundedToolInvocationResult
Source§fn eq(&self, other: &BoundedToolInvocationResult) -> bool
fn eq(&self, other: &BoundedToolInvocationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoundedToolInvocationResult
Auto Trait Implementations§
impl Freeze for BoundedToolInvocationResult
impl RefUnwindSafe for BoundedToolInvocationResult
impl Send for BoundedToolInvocationResult
impl Sync for BoundedToolInvocationResult
impl Unpin for BoundedToolInvocationResult
impl UnsafeUnpin for BoundedToolInvocationResult
impl UnwindSafe for BoundedToolInvocationResult
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