pub struct ProcessorConfig {
pub coherence_threshold: f32,
pub focus_threshold: f32,
pub target_ratio: f32,
pub auto_learn: bool,
pub max_tokens_before_compression: u32,
pub preserve_last_n: usize,
pub inject_focus_message: bool,
}Expand description
Configuration for the integrated processor.
Fields§
§coherence_threshold: f32Coherence threshold (segments above this are kept intact).
focus_threshold: f32Focus score threshold (segments above this are prioritized).
target_ratio: f32Target token ratio after compression.
auto_learn: boolWhether to auto-learn patterns from conversations.
max_tokens_before_compression: u32Maximum tokens before triggering compression.
preserve_last_n: usizeNumber of recent messages to always preserve.
inject_focus_message: boolWhether to inject focus message into compressed output.
Implementations§
Source§impl ProcessorConfig
impl ProcessorConfig
Sourcepub fn simple_conversation() -> Self
pub fn simple_conversation() -> Self
Create config for simple conversations.
Sourcepub fn complex_technical() -> Self
pub fn complex_technical() -> Self
Create config for complex technical discussions.
Sourcepub fn from_hardcode(hardcode: &HardcodeConfig) -> Self
pub fn from_hardcode(hardcode: &HardcodeConfig) -> Self
Create config from hardcode config.
Trait Implementations§
Source§impl Clone for ProcessorConfig
impl Clone for ProcessorConfig
Source§fn clone(&self) -> ProcessorConfig
fn clone(&self) -> ProcessorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessorConfig
impl Debug for ProcessorConfig
Source§impl Default for ProcessorConfig
impl Default for ProcessorConfig
Source§impl<'de> Deserialize<'de> for ProcessorConfig
impl<'de> Deserialize<'de> for ProcessorConfig
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 ProcessorConfig
impl RefUnwindSafe for ProcessorConfig
impl Send for ProcessorConfig
impl Sync for ProcessorConfig
impl Unpin for ProcessorConfig
impl UnsafeUnpin for ProcessorConfig
impl UnwindSafe for ProcessorConfig
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