pub struct CompressionGuidelinesConfig {
pub enabled: bool,
pub update_threshold: u16,
pub max_guidelines_tokens: usize,
pub max_pairs_per_update: usize,
pub detection_window_turns: u64,
pub update_interval_secs: u64,
pub max_stored_pairs: usize,
pub guidelines_provider: Option<ProviderName>,
pub categorized_guidelines: bool,
}Expand description
Configuration for ACON failure-driven compression guidelines.
zeph-memory re-exports this type from here.
Fields§
§enabled: boolEnable the feature. Default: false.
update_threshold: u16Minimum unused failure pairs before triggering a guidelines update. Default: 5.
max_guidelines_tokens: usizeMaximum token budget for the guidelines document. Default: 500.
max_pairs_per_update: usizeMaximum failure pairs consumed per update cycle. Default: 10.
detection_window_turns: u64Number of turns after hard compaction to watch for context loss. Default: 10.
update_interval_secs: u64Interval in seconds between background updater checks. Default: 300.
max_stored_pairs: usizeMaximum unused failure pairs to retain (cleanup policy). Default: 100.
guidelines_provider: Option<ProviderName>Provider name from [[llm.providers]] for guidelines update LLM calls.
None (or Some("")) falls back to the primary provider.
categorized_guidelines: boolMaintain separate guideline documents per content category.
Trait Implementations§
Source§impl Clone for CompressionGuidelinesConfig
impl Clone for CompressionGuidelinesConfig
Source§fn clone(&self) -> CompressionGuidelinesConfig
fn clone(&self) -> CompressionGuidelinesConfig
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 CompressionGuidelinesConfig
impl Debug for CompressionGuidelinesConfig
Source§impl Default for CompressionGuidelinesConfig
impl Default for CompressionGuidelinesConfig
Source§fn default() -> CompressionGuidelinesConfig
fn default() -> CompressionGuidelinesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompressionGuidelinesConfigwhere
CompressionGuidelinesConfig: Default,
impl<'de> Deserialize<'de> for CompressionGuidelinesConfigwhere
CompressionGuidelinesConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompressionGuidelinesConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompressionGuidelinesConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CompressionGuidelinesConfig
impl Serialize for CompressionGuidelinesConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CompressionGuidelinesConfig
impl RefUnwindSafe for CompressionGuidelinesConfig
impl Send for CompressionGuidelinesConfig
impl Sync for CompressionGuidelinesConfig
impl Unpin for CompressionGuidelinesConfig
impl UnsafeUnpin for CompressionGuidelinesConfig
impl UnwindSafe for CompressionGuidelinesConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request