pub struct CodexAgentHandle { /* private fields */ }Expand description
Live Codex ACP process + optional session.
Implementations§
Source§impl CodexAgentHandle
impl CodexAgentHandle
Sourcepub async fn connect(
config: CodexAgentConfig,
) -> Result<Self, CodexConnectorError>
pub async fn connect( config: CodexAgentConfig, ) -> Result<Self, CodexConnectorError>
Spawn ACP server (codex-acp / native), run initialize (+ optional authenticate).
Sourcepub fn take_updates(&mut self) -> Receiver<Bytes>
pub fn take_updates(&mut self) -> Receiver<Bytes>
Take the session/update stream (once).
Sourcepub async fn session_new(
&self,
config: CodexSessionConfig,
) -> Result<CodexSession, CodexConnectorError>
pub async fn session_new( &self, config: CodexSessionConfig, ) -> Result<CodexSession, CodexConnectorError>
Create a new session (session/new).
Sourcepub async fn session_load(
&self,
session_id: impl Into<String>,
cwd: impl AsRef<Path>,
) -> Result<CodexSession, CodexConnectorError>
pub async fn session_load( &self, session_id: impl Into<String>, cwd: impl AsRef<Path>, ) -> Result<CodexSession, CodexConnectorError>
Explicit session load (no most-recent heuristic).
Sourcepub fn dialect(&self) -> DialectBinding
pub fn dialect(&self) -> DialectBinding
Dialect binding for Interpreter.
Sourcepub fn raw_dump_text(&self) -> String
pub fn raw_dump_text(&self) -> String
Raw dump snapshot text.
Sourcepub fn raw_dump(&self) -> Arc<CodexRawDump> ⓘ
pub fn raw_dump(&self) -> Arc<CodexRawDump> ⓘ
Shared dump handle.
Auto Trait Implementations§
impl !RefUnwindSafe for CodexAgentHandle
impl !UnwindSafe for CodexAgentHandle
impl Freeze for CodexAgentHandle
impl Send for CodexAgentHandle
impl Sync for CodexAgentHandle
impl Unpin for CodexAgentHandle
impl UnsafeUnpin for CodexAgentHandle
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