pub struct EffectiveConfig {
pub tokenizer: TokenizerProfile,
pub llm: LlmProfile,
pub agent: AgentProfile,
pub hints: HintsConfig,
pub mckp: MckpConfig,
}Expand description
Resolved per-session view of the configuration. This is what the layered pipeline reads on the hot path; produce it once at session start.
Fields§
§tokenizer: TokenizerProfile§llm: LlmProfile§agent: AgentProfile§hints: HintsConfig§mckp: MckpConfigCached MckpConfig — recursion_depth comes from the agent profile,
other fields are inherited from the legacy [mckp] section.
Implementations§
Source§impl EffectiveConfig
impl EffectiveConfig
Sourcepub fn resolve(cfg: &AdaptiveConfig, ctx: &SessionContext) -> Self
pub fn resolve(cfg: &AdaptiveConfig, ctx: &SessionContext) -> Self
Collapse AdaptiveConfig + SessionContext into a single runtime view.
Sourcepub fn preferred_format_for<'a>(
&self,
cfg: &'a AdaptiveConfig,
endpoint: &str,
) -> Option<&'a str>
pub fn preferred_format_for<'a>( &self, cfg: &'a AdaptiveConfig, endpoint: &str, ) -> Option<&'a str>
Per-endpoint format choice: data profile pattern wins over template overrides.
Sourcepub fn allow_hint(&self, type_id: &str) -> bool
pub fn allow_hint(&self, type_id: &str) -> bool
Should this hint type fire for the active model? Callers still must
enforce max_per_session themselves (state lives outside config).
Trait Implementations§
Source§impl Clone for EffectiveConfig
impl Clone for EffectiveConfig
Source§fn clone(&self) -> EffectiveConfig
fn clone(&self) -> EffectiveConfig
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 moreAuto Trait Implementations§
impl Freeze for EffectiveConfig
impl RefUnwindSafe for EffectiveConfig
impl Send for EffectiveConfig
impl Sync for EffectiveConfig
impl Unpin for EffectiveConfig
impl UnsafeUnpin for EffectiveConfig
impl UnwindSafe for EffectiveConfig
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