pub struct CodexConfig {
pub model: String,
pub sandbox: String,
pub approval: String,
}Expand description
Per-agent codex-CLI configuration.
Fields§
§model: String§sandbox: String§approval: StringImplementations§
Source§impl CodexConfig
impl CodexConfig
Sourcepub fn defaults_for() -> Self
pub fn defaults_for() -> Self
Defaults for a resident codex agent: gpt-5.4,
danger-full-access sandbox, never approval policy. Matches
the sidecar adapter’s choices (codex_agent.rs) so swapping
sidecar <-> resident for the same agent N produces comparable
behavior. Overrides land via AGENT_CODEX_MODEL,
AGENT_CODEX_SANDBOX, and AGENT_CODEX_APPROVAL env vars.
Trait Implementations§
Source§impl Clone for CodexConfig
impl Clone for CodexConfig
Source§fn clone(&self) -> CodexConfig
fn clone(&self) -> CodexConfig
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 moreAuto Trait Implementations§
impl Freeze for CodexConfig
impl RefUnwindSafe for CodexConfig
impl Send for CodexConfig
impl Sync for CodexConfig
impl Unpin for CodexConfig
impl UnsafeUnpin for CodexConfig
impl UnwindSafe for CodexConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more