pub struct ClaudeCodeExecutor { /* private fields */ }Expand description
Claude Code executor — spawns claude CLI subprocess.
Implementations§
Trait Implementations§
Source§impl AgentExecutor for ClaudeCodeExecutor
impl AgentExecutor for ClaudeCodeExecutor
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 ClaudeCodeExecutor
impl RefUnwindSafe for ClaudeCodeExecutor
impl Send for ClaudeCodeExecutor
impl Sync for ClaudeCodeExecutor
impl Unpin for ClaudeCodeExecutor
impl UnsafeUnpin for ClaudeCodeExecutor
impl UnwindSafe for ClaudeCodeExecutor
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