pub struct CodexExecutor { /* private fields */ }Expand description
Codex executor — spawns codex CLI subprocess.
Implementations§
Source§impl CodexExecutor
impl CodexExecutor
Trait Implementations§
Source§impl AgentExecutor for CodexExecutor
impl AgentExecutor for CodexExecutor
Source§fn executor_type(&self) -> ExecutorType
fn executor_type(&self) -> ExecutorType
Which provider this executor implements.
Source§fn spawn<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
working_dir: &'life1 Path,
prompt: &'life2 str,
config: &'life3 SpawnConfig,
) -> Pin<Box<dyn Future<Output = Result<AgentSession>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn spawn<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
working_dir: &'life1 Path,
prompt: &'life2 str,
config: &'life3 SpawnConfig,
) -> Pin<Box<dyn Future<Output = Result<AgentSession>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Create a new session and send the first prompt.
Source§fn resume<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
working_dir: &'life1 Path,
session_id: &'life2 str,
prompt: &'life3 str,
config: &'life4 SpawnConfig,
) -> Pin<Box<dyn Future<Output = Result<AgentSession>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn resume<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
working_dir: &'life1 Path,
session_id: &'life2 str,
prompt: &'life3 str,
config: &'life4 SpawnConfig,
) -> Pin<Box<dyn Future<Output = Result<AgentSession>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Resume an existing session with a follow-up prompt.
Source§fn capabilities(&self) -> AgentCapabilities
fn capabilities(&self) -> AgentCapabilities
Static capability flags.
Source§fn availability(&self) -> AvailabilityStatus
fn availability(&self) -> AvailabilityStatus
Check if the runtime dependency (CLI, server) is available.
Auto Trait Implementations§
impl Freeze for CodexExecutor
impl RefUnwindSafe for CodexExecutor
impl Send for CodexExecutor
impl Sync for CodexExecutor
impl Unpin for CodexExecutor
impl UnsafeUnpin for CodexExecutor
impl UnwindSafe for CodexExecutor
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