pub struct WorkerPromptOptions {
pub task_id: Option<String>,
pub mode: WorkerMode,
pub repoprompt_plan_required: bool,
pub repoprompt_tool_injection: bool,
pub iterations: u8,
pub iteration_index: u8,
pub plan_file: Option<PathBuf>,
pub plan_text: Option<String>,
pub explain: bool,
}Fields§
§task_id: Option<String>If None, we will attempt to pick the first todo task from the queue.
mode: WorkerMode§repoprompt_plan_required: boolRepoPrompt planning requirement already resolved (flags + config).
repoprompt_tool_injection: boolRepoPrompt tooling reminder injection already resolved (flags + config).
iterations: u8Total iteration count to simulate when rendering prompts.
iteration_index: u81-based iteration index to simulate when rendering prompts.
plan_file: Option<PathBuf>Optional explicit plan file for Phase 2.
If omitted in Phase 2, we try the cached plan at .ralph/cache/plans/{{TASK_ID}}.md.
plan_text: Option<String>Optional inline plan override (takes precedence over plan_file/cache).
explain: boolPrint a small header explaining what was selected.
Trait Implementations§
Source§impl Clone for WorkerPromptOptions
impl Clone for WorkerPromptOptions
Source§fn clone(&self) -> WorkerPromptOptions
fn clone(&self) -> WorkerPromptOptions
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 moreAuto Trait Implementations§
impl Freeze for WorkerPromptOptions
impl RefUnwindSafe for WorkerPromptOptions
impl Send for WorkerPromptOptions
impl Sync for WorkerPromptOptions
impl Unpin for WorkerPromptOptions
impl UnsafeUnpin for WorkerPromptOptions
impl UnwindSafe for WorkerPromptOptions
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