Struct ResolvedRuntime
pub struct ResolvedRuntime {Show 20 fields
pub compact_context: bool,
pub max_tool_iterations: usize,
pub max_history_messages: usize,
pub max_context_tokens: usize,
pub model_context_window: usize,
pub parallel_tools: bool,
pub tool_dispatcher: String,
pub strict_tool_parsing: bool,
pub tool_call_dedup_exempt: Vec<String>,
pub tool_filter_groups: Vec<ToolFilterGroup>,
pub max_system_prompt_chars: usize,
pub thinking: ThinkingConfig,
pub history_pruning: HistoryPrunerConfig,
pub eval: EvalConfig,
pub auto_classify: Option<AutoClassifyConfig>,
pub context_compression: ContextCompressionConfig,
pub max_tool_result_chars: usize,
pub keep_tool_context_turns: usize,
pub tool_receipts: ToolReceiptsConfig,
pub prompt_injection_mode: SkillsPromptInjectionMode,
}Expand description
Runtime tunables resolved from the agent’s runtime profile. Populated
by Config::resolved_agent_config; never deserialized from the agent
table. The runtime profile is the sole config surface for these.
Fields§
§compact_context: bool§max_tool_iterations: usize§max_history_messages: usize§max_context_tokens: usizeToken budget for preemptive context/history trimming (from runtime profile).
NOT the provider max_tokens output limit.
model_context_window: usizeModel’s context window (max input tokens) — from provider config.
parallel_tools: bool§tool_dispatcher: String§strict_tool_parsing: bool§tool_call_dedup_exempt: Vec<String>§tool_filter_groups: Vec<ToolFilterGroup>§max_system_prompt_chars: usize§thinking: ThinkingConfig§history_pruning: HistoryPrunerConfig§eval: EvalConfig§auto_classify: Option<AutoClassifyConfig>§context_compression: ContextCompressionConfig§max_tool_result_chars: usize§keep_tool_context_turns: usize§tool_receipts: ToolReceiptsConfig§prompt_injection_mode: SkillsPromptInjectionModeImplementations§
Source§impl ResolvedRuntime
impl ResolvedRuntime
Sourcepub fn effective_context_budget(&self) -> usize
pub fn effective_context_budget(&self) -> usize
Effective token budget for preemptive whole-turn history trimming.
When history_pruning.enabled is set, an explicit max_tokens floor
trims earlier than the hard context ceiling; otherwise the ceiling is
the only trigger. Reuses the existing history_pruning.* idents.
Trait Implementations§
Source§impl Clone for ResolvedRuntime
impl Clone for ResolvedRuntime
Source§fn clone(&self) -> ResolvedRuntime
fn clone(&self) -> ResolvedRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedRuntime
impl Debug for ResolvedRuntime
Auto Trait Implementations§
impl Freeze for ResolvedRuntime
impl RefUnwindSafe for ResolvedRuntime
impl Send for ResolvedRuntime
impl Sync for ResolvedRuntime
impl Unpin for ResolvedRuntime
impl UnsafeUnpin for ResolvedRuntime
impl UnwindSafe for ResolvedRuntime
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more