pub enum AgentKind {
OpenCode,
ClaudeCode,
Codex,
Antigravity,
Copilot,
Custom(String),
}Expand description
Supported agent kinds.
Variants§
OpenCode
ClaudeCode
Codex
Antigravity
Copilot
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, Antigravity, and Copilot provide native ACP directly (opencode acp / agy acp / copilot --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 AgentKindwhere
RawVecInner: Send,
impl Sync for AgentKindwhere
RawVecInner: Sync,
impl Unpin for AgentKind
impl UnsafeUnpin for AgentKind
impl UnwindSafe for AgentKindwhere
RawVecInner: UnwindSafe,
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