pub struct ToolExecutionContext {
pub call_id: String,
pub tool_call_id: ToolCallId,
pub tool_name: ToolName,
pub input: Option<JsonValue>,
pub record_outputs: bool,
}Expand description
Context of a tool execution handed to Telemetry::execute_tool.
Fields§
§call_id: StringCall id.
tool_call_id: ToolCallIdTool call id.
tool_name: ToolNameTool name.
input: Option<JsonValue>Input (only when record_inputs).
record_outputs: boolWhether an integration may record the tool’s output.
Trait Implementations§
Source§impl Clone for ToolExecutionContext
impl Clone for ToolExecutionContext
Source§fn clone(&self) -> ToolExecutionContext
fn clone(&self) -> ToolExecutionContext
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 ToolExecutionContext
impl RefUnwindSafe for ToolExecutionContext
impl Send for ToolExecutionContext
impl Sync for ToolExecutionContext
impl Unpin for ToolExecutionContext
impl UnsafeUnpin for ToolExecutionContext
impl UnwindSafe for ToolExecutionContext
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