pub struct PlanningConfig {
pub max_planning_depth: u32,
pub max_planning_cost_usd: f64,
pub planning_step_timeout: Duration,
pub circuit_breaker_no_op_limit: u32,
}Expand description
Configuration for the planning router.
Fields§
§max_planning_depth: u32Maximum number of planning steps before forced termination.
max_planning_cost_usd: f64Hard budget cap for LLM calls during planning (USD).
planning_step_timeout: DurationMaximum duration for a single planning step.
circuit_breaker_no_op_limit: u32Number of consecutive no-op steps before circuit breaker triggers.
Trait Implementations§
Source§impl Clone for PlanningConfig
impl Clone for PlanningConfig
Source§fn clone(&self) -> PlanningConfig
fn clone(&self) -> PlanningConfig
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 PlanningConfig
impl Debug for PlanningConfig
Source§impl Default for PlanningConfig
impl Default for PlanningConfig
Source§impl<'de> Deserialize<'de> for PlanningConfig
impl<'de> Deserialize<'de> for PlanningConfig
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 PlanningConfig
impl RefUnwindSafe for PlanningConfig
impl Send for PlanningConfig
impl Sync for PlanningConfig
impl Unpin for PlanningConfig
impl UnsafeUnpin for PlanningConfig
impl UnwindSafe for PlanningConfig
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 more