pub struct CodexExecutor { /* private fields */ }Expand description
One-process-per-activation Codex CLI executor.
Implementations§
Source§impl CodexExecutor
impl CodexExecutor
Sourcepub async fn new(
binary: Option<String>,
model: Option<String>,
workspace: Option<String>,
state_dir: Option<PathBuf>,
forward_env: Vec<String>,
auth: CodexAuthConfig,
permissions: CodexPermissionConfig,
) -> Result<Self, String>
pub async fn new( binary: Option<String>, model: Option<String>, workspace: Option<String>, state_dir: Option<PathBuf>, forward_env: Vec<String>, auth: CodexAuthConfig, permissions: CodexPermissionConfig, ) -> Result<Self, String>
Resolve and capability-check the configured Codex binary before the worker begins serving runs. This keeps install/version failures at provisioning time instead of surfacing halfway through a child turn.
Trait Implementations§
Source§impl ChildExecutor for CodexExecutor
impl ChildExecutor for CodexExecutor
fn run<'life0, 'async_trait>(
&'life0 self,
spec: RunSpec,
events: EventSink,
steer: SteerInbox,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = ChildOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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