pub struct PlanningModeConfig {
pub enabled: bool,
pub max_planned_steps: usize,
pub replan_on_failure: bool,
pub max_replan_attempts: usize,
pub include_reasoning: bool,
pub auto_execute_threshold: f64,
}Expand description
Configuration for planning mode.
Fields§
§enabled: boolEnable planning mode.
max_planned_steps: usizeMaximum steps to plan at once.
replan_on_failure: boolWhether to re-plan on checkpoint failure.
max_replan_attempts: usizeMaximum re-plan attempts.
include_reasoning: boolWhether to include reasoning in plans.
auto_execute_threshold: f64Minimum confidence to execute without checkpoints.
Implementations§
Source§impl PlanningModeConfig
impl PlanningModeConfig
Sourcepub fn with_max_steps(self, max: usize) -> Self
pub fn with_max_steps(self, max: usize) -> Self
Set max planned steps.
Sourcepub fn with_replan(self, enabled: bool) -> Self
pub fn with_replan(self, enabled: bool) -> Self
Set re-plan behavior.
Sourcepub fn with_auto_execute_threshold(self, threshold: f64) -> Self
pub fn with_auto_execute_threshold(self, threshold: f64) -> Self
Set auto-execute threshold.
Trait Implementations§
Source§impl Clone for PlanningModeConfig
impl Clone for PlanningModeConfig
Source§fn clone(&self) -> PlanningModeConfig
fn clone(&self) -> PlanningModeConfig
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 PlanningModeConfig
impl Debug for PlanningModeConfig
Source§impl Default for PlanningModeConfig
impl Default for PlanningModeConfig
Source§impl<'de> Deserialize<'de> for PlanningModeConfig
impl<'de> Deserialize<'de> for PlanningModeConfig
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
Source§impl PartialEq for PlanningModeConfig
impl PartialEq for PlanningModeConfig
Source§impl Serialize for PlanningModeConfig
impl Serialize for PlanningModeConfig
impl StructuralPartialEq for PlanningModeConfig
Auto Trait Implementations§
impl Freeze for PlanningModeConfig
impl RefUnwindSafe for PlanningModeConfig
impl Send for PlanningModeConfig
impl Sync for PlanningModeConfig
impl Unpin for PlanningModeConfig
impl UnwindSafe for PlanningModeConfig
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