pub struct LlmResponseTracerEvent {
pub timestamp: f64,
pub correlation_id: String,
pub source: String,
pub model: String,
pub content: String,
pub tool_calls: Option<Vec<HashMap<String, Value>>>,
pub call_duration_ms: Option<f64>,
}Expand description
Records when an LLM responds to a call
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
model: StringThe LLM model that was used
content: StringThe content of the LLM response
tool_calls: Option<Vec<HashMap<String, Value>>>Any tool calls made by the LLM
call_duration_ms: Option<f64>Duration of the LLM call in milliseconds
Trait Implementations§
Source§impl Clone for LlmResponseTracerEvent
impl Clone for LlmResponseTracerEvent
Source§fn clone(&self) -> LlmResponseTracerEvent
fn clone(&self) -> LlmResponseTracerEvent
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 LlmResponseTracerEvent
impl Debug for LlmResponseTracerEvent
Source§impl<'de> Deserialize<'de> for LlmResponseTracerEvent
impl<'de> Deserialize<'de> for LlmResponseTracerEvent
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 LlmResponseTracerEvent
impl Serialize for LlmResponseTracerEvent
Source§impl TracerEvent for LlmResponseTracerEvent
impl TracerEvent for LlmResponseTracerEvent
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 LlmResponseTracerEvent
impl RefUnwindSafe for LlmResponseTracerEvent
impl Send for LlmResponseTracerEvent
impl Sync for LlmResponseTracerEvent
impl Unpin for LlmResponseTracerEvent
impl UnwindSafe for LlmResponseTracerEvent
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