pub struct TaskConfig {Show 25 fields
pub prompt: String,
pub gate: Option<String>,
pub context_strategy: String,
pub model: Option<String>,
pub container: Option<String>,
pub max_turns: usize,
pub max_gates: usize,
pub rollback: bool,
pub root: PathBuf,
pub container_workdir: String,
pub max_seconds: Option<u64>,
pub max_cost_usd: Option<f64>,
pub report: Option<PathBuf>,
pub fold_budget: Option<usize>,
pub sandbox: String,
pub network: String,
pub allow_read: Vec<PathBuf>,
pub pass_env: Vec<String>,
pub research: bool,
pub claim_check: bool,
pub base_check: bool,
pub base_check_dir: Option<PathBuf>,
pub converse: bool,
pub dispatch_cmd: Option<String>,
pub in_place: Option<InPlace>,
}Expand description
Execution parameters for running an autonomous solver task to completion.
Fields§
§prompt: StringGoal or task prompt for the agent to resolve.
gate: Option<String>Optional command string executed to determine task success (exit 0).
context_strategy: String§model: Option<String>Model identifier override passed to the provider.
container: Option<String>Container identifier if execution is sandboxed inside a Docker container.
max_turns: usizeMaximum allowed turn iterations before exhausting budget.
max_gates: usizeMaximum verification gate retry attempts.
rollback: boolWhether to roll back working tree on gate failure.
root: PathBufTarget repository or workspace root on the local filesystem.
container_workdir: StringWorking directory inside the container (--container-workdir).
max_seconds: Option<u64>Wall-clock budget in seconds (--max-seconds).
max_cost_usd: Option<f64>Maximum spend in USD (--max-cost).
report: Option<PathBuf>Where to write the JSON run report, if anywhere (--report).
fold_budget: Option<usize>Fold budget in approximate tokens (--fold-budget).
sandbox: StringSandbox local command execution mode (--sandbox).
network: StringNetwork outbound mode for commands (--network).
allow_read: Vec<PathBuf>Paths permitted for reading despite credential deny-list (--allow-read).
pass_env: Vec<String>Environment variables permitted to pass to commands despite looking like credentials (--pass-env).
research: boolWhether this is a research run: periodically remind the model to keep report.md updated.
claim_check: boolResearch run: check report.md’s claims against their cited lines.
base_check: boolRun the verification gate once before the first model call and stop as blocked if it fails.
base_check_dir: Option<PathBuf>Directory containing an untouched checkout of the base commit for background base checks.
converse: boolWhether this run is in converse mode (--converse).
dispatch_cmd: Option<String>Command to run on the host when the conversation model delegates work via the dispatch tool (--dispatch-cmd).
in_place: Option<InPlace>Saved-originals configuration when editing the workspace folder in place.