pub struct CodexExecArgs {Show 17 fields
pub input: String,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub thread_id: Option<String>,
pub images: Vec<String>,
pub model: Option<String>,
pub sandbox_mode: Option<SandboxMode>,
pub working_directory: Option<String>,
pub additional_directories: Vec<String>,
pub skip_git_repo_check: bool,
pub output_schema_file: Option<String>,
pub model_reasoning_effort: Option<ModelReasoningEffort>,
pub network_access_enabled: Option<bool>,
pub web_search_mode: Option<WebSearchMode>,
pub web_search_enabled: Option<bool>,
pub approval_policy: Option<ApprovalMode>,
pub cancellation_token: Option<CancellationToken>,
}Expand description
Arguments used by CodexExec::run.
Fields§
§input: StringPrompt text passed to Codex via stdin.
base_url: Option<String>Optional OPENAI_BASE_URL override.
api_key: Option<String>Optional CODEX_API_KEY override.
thread_id: Option<String>Existing thread id to resume. When set, resume <thread_id> is added.
images: Vec<String>Local image paths passed via repeated --image flags.
model: Option<String>Model override passed as --model.
sandbox_mode: Option<SandboxMode>Sandbox mode passed as --sandbox.
working_directory: Option<String>Working directory passed as --cd.
additional_directories: Vec<String>Additional directories passed as repeated --add-dir flags.
skip_git_repo_check: boolWhether to append --skip-git-repo-check.
output_schema_file: Option<String>Path passed to --output-schema.
model_reasoning_effort: Option<ModelReasoningEffort>Model reasoning effort translated to a --config override.
network_access_enabled: Option<bool>Network access override translated to a --config entry.
web_search_mode: Option<WebSearchMode>Explicit web search mode translated to a --config entry.
web_search_enabled: Option<bool>Legacy boolean web search toggle used when web_search_mode is absent.
approval_policy: Option<ApprovalMode>Approval policy translated to a --config entry.
cancellation_token: Option<CancellationToken>Optional cancellation token that aborts the running subprocess.
Trait Implementations§
Source§impl Clone for CodexExecArgs
impl Clone for CodexExecArgs
Source§fn clone(&self) -> CodexExecArgs
fn clone(&self) -> CodexExecArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more