pub struct RuntimeOptimizationConfig {Show 13 fields
pub enabled: bool,
pub max_speculative_llm_calls_per_turn: u32,
pub pre_response_deterministic_transitions: bool,
pub pre_response_extractors: bool,
pub speculative_state_transitions: bool,
pub speculative_skill_routing: bool,
pub speculative_reasoning_auto: bool,
pub parallel_post_turn_memory: bool,
pub parallel_orchestration_vote_extraction: bool,
pub background_observability_export: bool,
pub streaming_policy: StreamingOptimizationPolicy,
pub max_parallel_runtime_tasks: usize,
pub post_turn: PostTurnOptimizationConfig,
}Expand description
Controls safe pre-response routing, maintenance concurrency, and runtime task limits.
Fields§
§enabled: boolEnables runtime optimization behavior. Disabled agents keep serial behavior.
max_speculative_llm_calls_per_turn: u32Hard cap for additional speculative LLM calls in one turn.
pre_response_deterministic_transitions: boolRuns explicitly marked guard and resolved-intent transitions before old-state response generation.
pre_response_extractors: boolRuns current-state extractors before pre-response transition selection when requested.
speculative_state_transitions: boolEnables response-independent transition branches beside a draft response.
speculative_skill_routing: boolEnables pure skill routing beside a draft response.
speculative_reasoning_auto: boolEnables auto reasoning decisions beside a plain draft response.
parallel_post_turn_memory: boolAllows facts and relationship maintenance to run concurrently when configured.
parallel_orchestration_vote_extraction: boolAllows orchestration vote extraction to run concurrently while preserving order.
background_observability_export: boolReserved for snapshot-based observability export outside the response path.
streaming_policy: StreamingOptimizationPolicyStreaming safety policy used when optimization is enabled.
max_parallel_runtime_tasks: usizeMaximum internal runtime tasks scheduled at once.
post_turn: PostTurnOptimizationConfigPost-turn maintenance policy for future-turn work.
Implementations§
Source§impl RuntimeOptimizationConfig
impl RuntimeOptimizationConfig
Sourcepub fn validate(&self) -> Result<(), AgentError>
pub fn validate(&self) -> Result<(), AgentError>
Validates optimization settings before the runtime is built.
Trait Implementations§
Source§impl Clone for RuntimeOptimizationConfig
impl Clone for RuntimeOptimizationConfig
Source§fn clone(&self) -> RuntimeOptimizationConfig
fn clone(&self) -> RuntimeOptimizationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeOptimizationConfig
impl Debug for RuntimeOptimizationConfig
Source§impl Default for RuntimeOptimizationConfig
impl Default for RuntimeOptimizationConfig
Source§fn default() -> RuntimeOptimizationConfig
fn default() -> RuntimeOptimizationConfig
Source§impl<'de> Deserialize<'de> for RuntimeOptimizationConfigwhere
RuntimeOptimizationConfig: Default,
impl<'de> Deserialize<'de> for RuntimeOptimizationConfigwhere
RuntimeOptimizationConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeOptimizationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeOptimizationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for RuntimeOptimizationConfig
impl Serialize for RuntimeOptimizationConfig
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,
Auto Trait Implementations§
impl Freeze for RuntimeOptimizationConfig
impl RefUnwindSafe for RuntimeOptimizationConfig
impl Send for RuntimeOptimizationConfig
impl Sync for RuntimeOptimizationConfig
impl Unpin for RuntimeOptimizationConfig
impl UnsafeUnpin for RuntimeOptimizationConfig
impl UnwindSafe for RuntimeOptimizationConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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