pub struct CompressionOutcome {
pub session_id: String,
pub language: String,
pub entropy_threshold: f64,
pub jaccard_threshold: f64,
pub total_turns: u32,
pub tokens_saved: u64,
pub tokens_original: u64,
pub cache_hits: u32,
pub total_reads: u32,
pub task_completed: bool,
pub timestamp: String,
}Expand description
Feedback loop for learning optimal compression parameters.
Tracks compression outcomes per session and learns which threshold combinations lead to fewer turns and higher success rates.
Fields§
§session_id: String§language: String§entropy_threshold: f64§jaccard_threshold: f64§total_turns: u32§tokens_saved: u64§tokens_original: u64§cache_hits: u32§total_reads: u32§task_completed: bool§timestamp: StringTrait Implementations§
Source§impl Clone for CompressionOutcome
impl Clone for CompressionOutcome
Source§fn clone(&self) -> CompressionOutcome
fn clone(&self) -> CompressionOutcome
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 CompressionOutcome
impl Debug for CompressionOutcome
Source§impl Default for CompressionOutcome
impl Default for CompressionOutcome
Source§fn default() -> CompressionOutcome
fn default() -> CompressionOutcome
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompressionOutcome
impl<'de> Deserialize<'de> for CompressionOutcome
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 CompressionOutcome
impl RefUnwindSafe for CompressionOutcome
impl Send for CompressionOutcome
impl Sync for CompressionOutcome
impl Unpin for CompressionOutcome
impl UnsafeUnpin for CompressionOutcome
impl UnwindSafe for CompressionOutcome
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