pub struct PromptWorkerArgs {
pub single: bool,
pub phase: Option<RunPhase>,
pub task_id: Option<String>,
pub plan_file: Option<PathBuf>,
pub plan_text: Option<String>,
pub iterations: u8,
pub iteration_index: u8,
pub repo_prompt: Option<RepoPromptMode>,
pub explain: bool,
}Fields§
§single: boolForce worker single-phase prompt (plan+implement in one prompt) even if two-pass is enabled.
phase: Option<RunPhase>Force a specific worker phase (1=Plan, 2=Implement).
task_id: Option<String>Task id to use for status-update instructions (defaults to first todo task).
plan_file: Option<PathBuf>For phase 2: path to a plan file to embed.
plan_text: Option<String>For phase 2: inline plan text (takes precedence over –plan-file and cache).
iterations: u8Simulate total iteration count for prompt preview.
iteration_index: u8Simulate which iteration index to preview (1-based).
repo_prompt: Option<RepoPromptMode>RepoPrompt mode (tools, plan, off). Alias: -rp.
explain: boolPrint a header explaining what was selected (mode, sources, flags).
Trait Implementations§
Source§impl Args for PromptWorkerArgs
impl Args for PromptWorkerArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PromptWorkerArgs
impl FromArgMatches for PromptWorkerArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PromptWorkerArgs
impl RefUnwindSafe for PromptWorkerArgs
impl Send for PromptWorkerArgs
impl Sync for PromptWorkerArgs
impl Unpin for PromptWorkerArgs
impl UnsafeUnpin for PromptWorkerArgs
impl UnwindSafe for PromptWorkerArgs
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