pub struct KiroCliAdapter { /* private fields */ }Expand description
Adapter for the Kiro CLI.
Implementations§
Source§impl KiroCliAdapter
impl KiroCliAdapter
Sourcepub fn sdk_launch_command(&self) -> String
pub fn sdk_launch_command(&self) -> String
Build the launch command for ACP (JSON-RPC) SDK mode.
Returns a shell command that starts kiro-cli in ACP mode with structured JSON-RPC 2.0 I/O on stdin/stdout.
Trait Implementations§
Source§impl AgentAdapter for KiroCliAdapter
impl AgentAdapter for KiroCliAdapter
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 instruction_candidates(&self) -> &'static [&'static str]
fn instruction_candidates(&self) -> &'static [&'static str]
Preferred project-root instruction file candidates for this agent. Read more
Source§fn wrap_launch_prompt(&self, prompt: &str) -> String
fn wrap_launch_prompt(&self, prompt: &str) -> String
Allow adapters to wrap or transform the composed launch context. Read more
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.).
Auto Trait Implementations§
impl Freeze for KiroCliAdapter
impl RefUnwindSafe for KiroCliAdapter
impl Send for KiroCliAdapter
impl Sync for KiroCliAdapter
impl Unpin for KiroCliAdapter
impl UnsafeUnpin for KiroCliAdapter
impl UnwindSafe for KiroCliAdapter
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.