pub struct Codex { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AgentAdapter for Codex
impl AgentAdapter for Codex
fn agent(&self) -> Agent
Source§fn mcp_entries(&self, workdir: &Workdir) -> Result<Vec<McpEntry>, String>
fn mcp_entries(&self, workdir: &Workdir) -> Result<Vec<McpEntry>, String>
Every MCP server the agent would load when started in
workdir. An
unreadable or malformed file is an error that names it.Source§fn register_mcp(
&self,
name: &str,
url: &str,
client_id: &str,
_scope: McpScope,
_workdir: &Workdir,
) -> FixAction
fn register_mcp( &self, name: &str, url: &str, client_id: &str, _scope: McpScope, _workdir: &Workdir, ) -> FixAction
The command that registers an HTTP MCP server with a fixed OAuth
client in
scope, for an agent started in workdir. An agent with a
single configuration ignores the scope.Source§fn remove_mcp(&self, entry: &McpEntry, _workdir: &Workdir) -> FixAction
fn remove_mcp(&self, entry: &McpEntry, _workdir: &Workdir) -> FixAction
The command that removes
entry.Source§fn launch_via_gateway(
&self,
args: &[String],
gateway: &GatewayLaunch,
env: &dyn Fn(&str) -> Option<String>,
) -> Result<Command, String>
fn launch_via_gateway( &self, args: &[String], gateway: &GatewayLaunch, env: &dyn Fn(&str) -> Option<String>, ) -> Result<Command, String>
The command that starts the agent with
args and its LLM traffic
going through the AI Gateway. env reads the current environment.
Err when the caller’s own args would take the session elsewhere.Auto Trait Implementations§
impl Forget for Codex
impl Freeze for Codex
impl Move for Codex
impl RefUnwindSafe for Codex
impl Send for Codex
impl Sync for Codex
impl Unpin for Codex
impl UnsafeUnpin for Codex
impl UnwindSafe for Codex
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