pub struct ReplanConfig {
pub max_replans: u32,
pub delay_ms: u64,
pub verify_before_execute: bool,
pub replan_on_rejected: bool,
}Expand description
Configuration for the replan loop.
Fields§
§max_replans: u32Maximum number of replan attempts. 0 = disabled (default).
delay_ms: u64Delay in milliseconds between replan attempts. Prevents burning through attempts instantly if the model returns garbage fast. 0 = no delay.
verify_before_execute: boolIf true, replan proposals are scored via car-planner’s verify() before execution. Proposals with errors are rejected without executing. Prevents the engine from running a worse plan than the one that failed.
replan_on_rejected: boolWhen true, validator/policy/capability rejections (ActionStatus::Rejected) also trigger rollback + replan, not just runtime Failed actions. Default false (conservative: preserves prior abort-only-on-Failed behavior).
Trait Implementations§
Source§impl Clone for ReplanConfig
impl Clone for ReplanConfig
Source§impl Debug for ReplanConfig
impl Debug for ReplanConfig
Auto Trait Implementations§
impl Freeze for ReplanConfig
impl RefUnwindSafe for ReplanConfig
impl Send for ReplanConfig
impl Sync for ReplanConfig
impl Unpin for ReplanConfig
impl UnsafeUnpin for ReplanConfig
impl UnwindSafe for ReplanConfig
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
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> ErasedDestructor for Twhere
T: 'static,
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