pub struct ContextConfig {
pub default_token_budget: usize,
pub token_multiplier: f32,
pub zone_system_pct: f32,
pub zone_critical_pct: f32,
pub zone_primary_pct: f32,
pub zone_supporting_pct: f32,
pub zone_reference_pct: f32,
}Expand description
Context assembly settings.
Fields§
§default_token_budget: usizeDefault token budget for context windows.
token_multiplier: f32Multiplier for estimating token counts from word counts.
zone_system_pct: f32Fraction of budget for the system zone.
zone_critical_pct: f32Fraction of budget for the critical zone.
zone_primary_pct: f32Fraction of budget for the primary zone.
zone_supporting_pct: f32Fraction of budget for the supporting zone.
zone_reference_pct: f32Fraction of budget for the reference zone.
Trait Implementations§
Source§impl Clone for ContextConfig
impl Clone for ContextConfig
Source§fn clone(&self) -> ContextConfig
fn clone(&self) -> ContextConfig
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 ContextConfig
impl Debug for ContextConfig
Source§impl Default for ContextConfig
impl Default for ContextConfig
Source§impl<'de> Deserialize<'de> for ContextConfig
impl<'de> Deserialize<'de> for ContextConfig
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 ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnsafeUnpin for ContextConfig
impl UnwindSafe for ContextConfig
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