pub enum PlanningMode {
Auto,
Disabled,
Enabled,
}Expand description
Planning mode — controls when planning phase is used.
When set to Auto (the default), the system detects from the user’s
message whether planning should be enabled. When explicitly Enabled,
planning runs on every execution. When Disabled, planning is skipped.
Variants§
Auto
Automatically detect from message content — enables planning when the
message contains planning-related keywords (plan, design, architecture).
Also automatically uses AgentStyle::Plan detection.
Disabled
Explicitly disabled — never use planning phase.
Enabled
Explicitly enabled — always use planning phase.
Implementations§
Source§impl PlanningMode
impl PlanningMode
Sourcepub fn should_plan(&self, message: &str) -> bool
pub fn should_plan(&self, message: &str) -> bool
Returns true if planning should be used based on this mode and message.
Trait Implementations§
Source§impl Clone for PlanningMode
impl Clone for PlanningMode
Source§fn clone(&self) -> PlanningMode
fn clone(&self) -> PlanningMode
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 PlanningMode
impl Debug for PlanningMode
Source§impl Default for PlanningMode
impl Default for PlanningMode
Source§fn default() -> PlanningMode
fn default() -> PlanningMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlanningMode
impl<'de> Deserialize<'de> for PlanningMode
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 PlanningMode
impl PartialEq for PlanningMode
Source§impl Serialize for PlanningMode
impl Serialize for PlanningMode
impl Copy for PlanningMode
impl Eq for PlanningMode
impl StructuralPartialEq for PlanningMode
Auto Trait Implementations§
impl Freeze for PlanningMode
impl RefUnwindSafe for PlanningMode
impl Send for PlanningMode
impl Sync for PlanningMode
impl Unpin for PlanningMode
impl UnsafeUnpin for PlanningMode
impl UnwindSafe for PlanningMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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