pub struct Codex { /* private fields */ }Expand description
Cloneable Codex app-server runtime.
Implementations§
Source§impl Codex
impl Codex
Sourcepub async fn open(config: CodexConfig) -> Result<Self>
pub async fn open(config: CodexConfig) -> Result<Self>
Validates configuration and requires a ChatGPT-authenticated Codex CLI.
Sourcepub async fn start_turn(&self, request: AgentRequest) -> Result<AgentTurn>
pub async fn start_turn(&self, request: AgentRequest) -> Result<AgentTurn>
Starts one standard Codex turn and returns its interactive event stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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