pub enum AgentKind {
OpenCode,
ClaudeCode,
Codex,
Antigravity,
Custom(String),
}Expand description
Supported agent kinds.
Variants§
OpenCode
ClaudeCode
Codex
Antigravity
Custom(String)
Custom user agent: specifies executable directly.
Implementations§
Source§impl AgentKind
impl AgentKind
pub fn parse(s: &str) -> Option<AgentKind>
Sourcepub fn pty_command(&self) -> (&str, Vec<&'static str>)
pub fn pty_command(&self) -> (&str, Vec<&'static str>)
Launch command for interactive mode (PTY passthrough).
Sourcepub fn acp_command(&self) -> Option<(&str, Vec<&'static str>)>
pub fn acp_command(&self) -> Option<(&str, Vec<&'static str>)>
Launch command for native structured protocol (if supported).
OpenCode and Antigravity provide native ACP directly (opencode acp / agy acp),
without extra npm packages; Claude and Codex use their respective structured interfaces (see adapter crate).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentKind
impl<'de> Deserialize<'de> for AgentKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentKind
impl StructuralPartialEq for AgentKind
Auto Trait Implementations§
impl Forget for AgentKind
impl Freeze for AgentKind
impl Move for AgentKind
impl RefUnwindSafe for AgentKind
impl Send for AgentKind
impl Sync for AgentKind
impl Unpin for AgentKind
impl UnsafeUnpin for AgentKind
impl UnwindSafe for AgentKind
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