pub struct Exec {
pub command: String,
pub codex_home: PathBuf,
pub tmp_root: PathBuf,
pub model: Option<String>,
pub sandbox: String,
pub timeout: Duration,
pub env: Vec<(String, String)>,
pub args: Vec<String>,
}Expand description
How to run codex exec.
Fields§
§command: StringThe codex binary.
codex_home: PathBufThe real CODEX_HOME: only its auth.json is used (copied in, and
back when refreshed).
tmp_root: PathBufWhere the per-run directories go (made 0700 if missing).
model: Option<String>--model, if any (else Codex’s default).
sandbox: String--sandbox (read-only, workspace-write, danger-full-access).
timeout: DurationKilled after this long.
env: Vec<(String, String)>The child’s environment on top of the parent’s allowlisted variables
(crate::client::child_env), e.g. PATH. HOME, CODEX_HOME
and TMPDIR are always the run’s; LANG is C.UTF-8 unless given.
args: Vec<String>More codex exec arguments, before the prompt.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Exec
impl Freeze for Exec
impl RefUnwindSafe for Exec
impl Send for Exec
impl Sync for Exec
impl Unpin for Exec
impl UnsafeUnpin for Exec
impl UnwindSafe for Exec
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