pub struct ClaudeCodeAdapter { /* private fields */ }Expand description
Adapter for Claude Code CLI.
Implementations§
Source§impl ClaudeCodeAdapter
impl ClaudeCodeAdapter
pub fn new(program: Option<String>) -> Self
pub fn with_mode(self, mode: ClaudeMode) -> Self
pub fn mode(&self) -> ClaudeMode
Trait Implementations§
Source§impl AgentAdapter for ClaudeCodeAdapter
impl AgentAdapter for ClaudeCodeAdapter
Source§fn name(&self) -> &str
fn name(&self) -> &str
Human-readable name of the agent (e.g., “claude-code”, “codex”, “aider”).
Source§fn spawn_config(&self, task_description: &str, work_dir: &Path) -> SpawnConfig
fn spawn_config(&self, task_description: &str, work_dir: &Path) -> SpawnConfig
Build the spawn configuration for this agent. Read more
Source§fn prompt_patterns(&self) -> PromptPatterns
fn prompt_patterns(&self) -> PromptPatterns
Get the compiled prompt detection patterns for this agent.
Source§fn format_input(&self, response: &str) -> String
fn format_input(&self, response: &str) -> String
Format a response to send to the agent’s stdin. Read more
Source§fn launch_command(
&self,
prompt: &str,
idle: bool,
resume: bool,
session_id: Option<&str>,
) -> Result<String>
fn launch_command( &self, prompt: &str, idle: bool, resume: bool, session_id: Option<&str>, ) -> Result<String>
Build the shell command to launch this agent. Read more
Source§fn new_session_id(&self) -> Option<String>
fn new_session_id(&self) -> Option<String>
Generate a new session ID for this backend, if supported. Read more
Source§fn supports_resume(&self) -> bool
fn supports_resume(&self) -> bool
Whether this backend supports resuming a previous session.
Source§fn health_check(&self) -> BackendHealth
fn health_check(&self) -> BackendHealth
Check if this agent’s backend is healthy (binary available, etc.).
Source§fn instruction_candidates(&self) -> &'static [&'static str]
fn instruction_candidates(&self) -> &'static [&'static str]
Preferred project-root instruction file candidates for this agent. Read more
Auto Trait Implementations§
impl Freeze for ClaudeCodeAdapter
impl RefUnwindSafe for ClaudeCodeAdapter
impl Send for ClaudeCodeAdapter
impl Sync for ClaudeCodeAdapter
impl Unpin for ClaudeCodeAdapter
impl UnsafeUnpin for ClaudeCodeAdapter
impl UnwindSafe for ClaudeCodeAdapter
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