pub enum AgentKind {
Agent,
Interactive,
Hybrid,
}Expand description
The kind of AI coding environment detected.
Variants§
Agent
A fully automated coding agent (no human in the loop during execution).
Examples: Claude Code, OpenAI Codex, GitHub Copilot Cloud Agent.
Interactive
An interactive AI-assisted coding tool where a human is still driving.
Examples: Cursor (interactive mode), Zed (interactive mode).
Hybrid
An environment that can operate in both agent and interactive modes.
Examples: Warp Terminal.
Implementations§
Source§impl AgentKind
impl AgentKind
Sourcepub fn is_agent(&self) -> bool
pub fn is_agent(&self) -> bool
Returns true if this is an autonomous AgentKind::Agent.
Sourcepub fn is_interactive(&self) -> bool
pub fn is_interactive(&self) -> bool
Returns true if this is an AgentKind::Interactive environment.
Sourcepub fn is_hybrid(&self) -> bool
pub fn is_hybrid(&self) -> bool
Returns true if this is a AgentKind::Hybrid environment.
Trait Implementations§
impl Eq for AgentKind
impl StructuralPartialEq for AgentKind
Auto Trait Implementations§
impl Freeze 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