pub struct DumpEntry {
pub timestamp: DateTime<Utc>,
pub profile: String,
pub prompt: String,
pub cached_sections: usize,
pub dynamic_sections: usize,
pub cached_tokens: usize,
pub dynamic_tokens: usize,
pub total_tokens: usize,
pub cache_efficiency: f64,
pub session_id: Option<String>,
pub conversation_id: Option<String>,
}Expand description
A single dump entry for JSONL export
Fields§
§timestamp: DateTime<Utc>Timestamp
profile: StringProfile used
prompt: StringFull prompt content
cached_sections: usizeCached sections count
dynamic_sections: usizeDynamic sections count
cached_tokens: usizeCached tokens estimate
dynamic_tokens: usizeDynamic tokens estimate
total_tokens: usizeTotal tokens estimate
cache_efficiency: f64Cache efficiency percentage
session_id: Option<String>Session ID (optional)
conversation_id: Option<String>Conversation ID (optional)
Implementations§
Source§impl DumpEntry
impl DumpEntry
Sourcepub fn from_prompt(prompt: &AssembledPrompt, session_id: Option<String>) -> Self
pub fn from_prompt(prompt: &AssembledPrompt, session_id: Option<String>) -> Self
Create from assembled prompt
Sourcepub fn with_conversation(self, conversation_id: String) -> Self
pub fn with_conversation(self, conversation_id: String) -> Self
Create with additional conversation context
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DumpEntry
impl<'de> Deserialize<'de> for DumpEntry
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
Auto Trait Implementations§
impl Freeze for DumpEntry
impl RefUnwindSafe for DumpEntry
impl Send for DumpEntry
impl Sync for DumpEntry
impl Unpin for DumpEntry
impl UnsafeUnpin for DumpEntry
impl UnwindSafe for DumpEntry
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