pub struct ToolCallTracerEvent {
pub timestamp: f64,
pub correlation_id: String,
pub source: String,
pub tool_name: String,
pub arguments: HashMap<String, Value>,
pub result: Value,
pub caller: Option<String>,
pub call_duration_ms: Option<f64>,
}Expand description
Records when a tool is called during agent execution
Fields§
§timestamp: f64Timestamp when the event occurred (Unix timestamp)
correlation_id: StringUUID string that is copied from cause-to-affect for tracing events
source: StringSource of the event
tool_name: StringName of the tool that was called
arguments: HashMap<String, Value>Arguments provided to the tool
result: ValueResult returned by the tool (as JSON value)
caller: Option<String>Name of the agent or component that called the tool
call_duration_ms: Option<f64>Duration of the tool call in milliseconds
Trait Implementations§
Source§impl Clone for ToolCallTracerEvent
impl Clone for ToolCallTracerEvent
Source§fn clone(&self) -> ToolCallTracerEvent
fn clone(&self) -> ToolCallTracerEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolCallTracerEvent
impl Debug for ToolCallTracerEvent
Source§impl<'de> Deserialize<'de> for ToolCallTracerEvent
impl<'de> Deserialize<'de> for ToolCallTracerEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ToolCallTracerEvent
impl Serialize for ToolCallTracerEvent
Source§impl TracerEvent for ToolCallTracerEvent
impl TracerEvent for ToolCallTracerEvent
Source§fn correlation_id(&self) -> &str
fn correlation_id(&self) -> &str
Get the correlation ID for tracing related events
Source§fn printable_summary(&self) -> String
fn printable_summary(&self) -> String
Get a formatted string summary of the event
Auto Trait Implementations§
impl Freeze for ToolCallTracerEvent
impl RefUnwindSafe for ToolCallTracerEvent
impl Send for ToolCallTracerEvent
impl Sync for ToolCallTracerEvent
impl Unpin for ToolCallTracerEvent
impl UnwindSafe for ToolCallTracerEvent
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