Skip to main content

TaskConfig

Struct TaskConfig 

Source
pub struct TaskConfig {
Show 24 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 orchestrate: bool, pub dispatch_cmd: Option<String>,
}
Expand description

Execution parameters for running an autonomous solver task to completion.

Fields§

§prompt: String

Goal 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: usize

Maximum allowed turn iterations before exhausting budget.

§max_gates: usize

Maximum verification gate retry attempts.

§rollback: bool

Whether to roll back working tree on gate failure.

§root: PathBuf

Target repository or workspace root on the local filesystem.

§container_workdir: String

Working 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: String

Sandbox local command execution mode (--sandbox).

§network: String

Network 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: bool

Whether this is a research run: periodically remind the model to keep report.md updated.

§claim_check: bool

Research run: check report.md’s claims against their cited lines.

§base_check: bool

Run 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.

§orchestrate: bool

Whether this run is in orchestrate mode (--orchestrate).

§dispatch_cmd: Option<String>

Command to run on the host when the orchestrator delegates work via the dispatch tool (--dispatch-cmd).

Trait Implementations§

Source§

impl Clone for TaskConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TaskConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&Cli> for TaskConfig

Source§

fn from(cli: &Cli) -> Self

Maps parsed CLI flags into a concrete TaskConfig configuration.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.