pub struct LlmCallTracerEvent {
pub timestamp: f64,
pub correlation_id: String,
pub source: String,
pub model: String,
pub messages: Vec<HashMap<String, Value>>,
pub temperature: f64,
pub tools: Option<Vec<HashMap<String, Value>>>,
}Expand description
Records when an LLM is called with specific messages
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
messages: Vec<HashMap<String, Value>>The messages sent to the LLM (simplified representation)
temperature: f64The temperature setting used for the call
tools: Option<Vec<HashMap<String, Value>>>The tools available to the LLM, if any
Trait Implementations§
Source§impl Clone for LlmCallTracerEvent
impl Clone for LlmCallTracerEvent
Source§fn clone(&self) -> LlmCallTracerEvent
fn clone(&self) -> LlmCallTracerEvent
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 LlmCallTracerEvent
impl Debug for LlmCallTracerEvent
Source§impl<'de> Deserialize<'de> for LlmCallTracerEvent
impl<'de> Deserialize<'de> for LlmCallTracerEvent
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 LlmCallTracerEvent
impl Serialize for LlmCallTracerEvent
Source§impl TracerEvent for LlmCallTracerEvent
impl TracerEvent for LlmCallTracerEvent
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 LlmCallTracerEvent
impl RefUnwindSafe for LlmCallTracerEvent
impl Send for LlmCallTracerEvent
impl Sync for LlmCallTracerEvent
impl Unpin for LlmCallTracerEvent
impl UnwindSafe for LlmCallTracerEvent
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