pub struct PlanParams {
pub provider: String,
pub goal: String,
pub output: Option<String>,
pub instructions: Option<String>,
pub system_prompt: Option<String>,
pub model: Option<String>,
pub root: Option<String>,
pub auto_approve: bool,
pub add_dirs: Vec<String>,
pub progress: Box<dyn ProgressHandler>,
}Expand description
Parameters for run_plan.
Fields§
§provider: String§goal: StringGoal to plan for.
output: Option<String>Output path. If the path has no extension, a timestamped filename
is generated inside that directory. None streams to stdout via
the underlying agent’s default output path.
instructions: Option<String>Additional instructions appended to the prompt.
system_prompt: Option<String>§model: Option<String>§root: Option<String>§auto_approve: bool§add_dirs: Vec<String>§progress: Box<dyn ProgressHandler>Progress handler — defaults to SilentProgress.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlanParams
impl !RefUnwindSafe for PlanParams
impl Send for PlanParams
impl Sync for PlanParams
impl Unpin for PlanParams
impl UnsafeUnpin for PlanParams
impl !UnwindSafe for PlanParams
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