pub struct PlanningAgentConfig {
pub agent: AgentConfig,
pub auto_execute: bool,
pub max_plan_steps: usize,
pub allow_revision: bool,
}Expand description
Configuration for the planning agent.
Fields§
§agent: AgentConfigBase agent configuration.
auto_execute: boolWhether to auto-execute the plan after creation.
max_plan_steps: usizeMaximum number of plan steps.
allow_revision: boolWhether to allow plan revision during execution.
Implementations§
Source§impl PlanningAgentConfig
impl PlanningAgentConfig
Sourcepub fn with_system_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_system_prompt(self, prompt: impl Into<String>) -> Self
Set the system prompt.
Sourcepub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
Set the model.
Sourcepub fn with_auto_execute(self, auto_execute: bool) -> Self
pub fn with_auto_execute(self, auto_execute: bool) -> Self
Enable auto-execution.
Sourcepub fn with_max_plan_steps(self, max: usize) -> Self
pub fn with_max_plan_steps(self, max: usize) -> Self
Set maximum plan steps.
Trait Implementations§
Source§impl Clone for PlanningAgentConfig
impl Clone for PlanningAgentConfig
Source§fn clone(&self) -> PlanningAgentConfig
fn clone(&self) -> PlanningAgentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlanningAgentConfig
impl Debug for PlanningAgentConfig
Source§impl Default for PlanningAgentConfig
impl Default for PlanningAgentConfig
Source§impl<'de> Deserialize<'de> for PlanningAgentConfig
impl<'de> Deserialize<'de> for PlanningAgentConfig
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 PlanningAgentConfig
impl RefUnwindSafe for PlanningAgentConfig
impl Send for PlanningAgentConfig
impl Sync for PlanningAgentConfig
impl Unpin for PlanningAgentConfig
impl UnsafeUnpin for PlanningAgentConfig
impl UnwindSafe for PlanningAgentConfig
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