pub struct ThreadOptions {
pub model: Option<String>,
pub sandbox_mode: Option<SandboxMode>,
pub working_directory: Option<String>,
pub skip_git_repo_check: Option<bool>,
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 additional_directories: Option<Vec<String>>,
}Expand description
Per-thread options passed to codex exec.
Fields§
§model: Option<String>Model name used for turns in this thread.
sandbox_mode: Option<SandboxMode>Filesystem sandbox mode.
working_directory: Option<String>Working directory used by Codex.
skip_git_repo_check: Option<bool>Whether to skip the Git repository check.
model_reasoning_effort: Option<ModelReasoningEffort>Model reasoning effort override.
network_access_enabled: Option<bool>Enables/disables network access within workspace-write sandbox mode.
web_search_mode: Option<WebSearchMode>Preferred web search mode.
web_search_enabled: Option<bool>Legacy boolean web search toggle used when web_search_mode is unset.
approval_policy: Option<ApprovalMode>Approval policy override.
additional_directories: Option<Vec<String>>Additional directories to expose to the agent.
Trait Implementations§
Source§impl Clone for ThreadOptions
impl Clone for ThreadOptions
Source§fn clone(&self) -> ThreadOptions
fn clone(&self) -> ThreadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadOptions
impl Debug for ThreadOptions
Source§impl Default for ThreadOptions
impl Default for ThreadOptions
Source§fn default() -> ThreadOptions
fn default() -> ThreadOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThreadOptions
impl<'de> Deserialize<'de> for ThreadOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreadOptions
impl PartialEq for ThreadOptions
Source§impl Serialize for ThreadOptions
impl Serialize for ThreadOptions
impl Eq for ThreadOptions
impl StructuralPartialEq for ThreadOptions
Auto Trait Implementations§
impl Freeze for ThreadOptions
impl RefUnwindSafe for ThreadOptions
impl Send for ThreadOptions
impl Sync for ThreadOptions
impl Unpin for ThreadOptions
impl UnsafeUnpin for ThreadOptions
impl UnwindSafe for ThreadOptions
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