pub struct ToolResultEvent<'a> {
pub tool_name: &'a str,
pub tool_call_id: Option<&'a str>,
pub internal_call_id: &'a str,
pub args: &'a str,
pub presentation: &'a ToolOutput,
pub raw_result: &'a ToolResult,
pub tool_context: &'a ToolContext,
}Expand description
Post-execution tool event.
presentation contains the running presentation rewrite. raw_result and
tool_context always contain the original execution data.
Fields§
§tool_name: &'a strTool name.
tool_call_id: Option<&'a str>Provider tool-call id.
internal_call_id: &'a strRig correlation id.
args: &'a strEffective arguments used for execution.
presentation: &'a ToolOutputCurrent model-visible presentation, including earlier rewrites.
raw_result: &'a ToolResultImmutable raw execution result.
tool_context: &'a ToolContextPer-dispatch context containing inbound data and result metadata.
Trait Implementations§
Source§impl<'a> Clone for ToolResultEvent<'a>
impl<'a> Clone for ToolResultEvent<'a>
Source§fn clone(&self) -> ToolResultEvent<'a>
fn clone(&self) -> ToolResultEvent<'a>
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 moreimpl<'a> Copy for ToolResultEvent<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ToolResultEvent<'a>
impl<'a> !UnwindSafe for ToolResultEvent<'a>
impl<'a> Freeze for ToolResultEvent<'a>
impl<'a> Send for ToolResultEvent<'a>
impl<'a> Sync for ToolResultEvent<'a>
impl<'a> Unpin for ToolResultEvent<'a>
impl<'a> UnsafeUnpin for ToolResultEvent<'a>
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