pub struct RunRequest {
pub run_id: String,
pub prompt: String,
pub cwd: Option<PathBuf>,
pub mode: RunMode,
pub tuning: RunTuning,
pub resume: Option<String>,
}Expand description
A harness-neutral run request. Adapter-specific knobs (bob’s
approval mode, coin budget, executable override) are filled in by
the adapter from its own defaults; the user-facing tuning the
picker exposes (model, effort, turn cap) rides on tuning.
Fields§
§run_id: StringCaller-chosen id used to correlate events with the handle.
prompt: String§cwd: Option<PathBuf>Working directory for the run — the workspace path, so the harness’s tool calls land inside the user’s vault.
mode: RunMode§tuning: RunTuningOptional, harness-neutral run-shaping knobs (model, effort, turn cap). Adapters honor the subset their CLI supports.
resume: Option<String>Session id to resume — continue a prior run’s conversation instead
of starting fresh, so the CLI supplies the history (no transcript replay
in the prompt). None → a new session. Each adapter maps it to its
CLI’s resume form (Claude --resume <id>, codex exec resume <id>,
bob -r <id>); the id comes from the earlier run’s init SessionInfo.
Trait Implementations§
Source§impl Clone for RunRequest
impl Clone for RunRequest
Source§fn clone(&self) -> RunRequest
fn clone(&self) -> RunRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more