pub struct RunTuning {
pub model: Option<String>,
pub effort: Option<ReasoningEffort>,
pub max_turns: Option<u32>,
}Expand description
User-chosen, harness-neutral run-shaping knobs. Every field is
optional; each adapter maps the ones its CLI supports and ignores
the rest (Claude has no reasoning-effort flag; Codex has no
max-turns flag). Grouped into one struct so the neutral
RunRequest stays open for extension — a new knob is a field
here, not a new positional parameter threaded through every caller.
Fields§
§model: Option<String>Model id or alias passed verbatim to the CLI (--model /
-m). None → let the CLI use its configured default.
effort: Option<ReasoningEffort>Reasoning effort (Codex: -c model_reasoning_effort).
max_turns: Option<u32>Cap on agentic turns (Claude: --max-turns).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunTuning
impl RefUnwindSafe for RunTuning
impl Send for RunTuning
impl Sync for RunTuning
impl Unpin for RunTuning
impl UnsafeUnpin for RunTuning
impl UnwindSafe for RunTuning
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