pub enum AgentKind {
Antigravity,
Claude,
Codex,
Harness,
}Expand description
Supported agent provider families.
Variants§
Antigravity
Google Antigravity CLI/backend.
Claude
Anthropic Claude Code CLI/backend.
Codex
OpenAI Codex CLI/backend.
Harness
Native in-process ag-harness backend, which has no CLI executable.
Implementations§
Source§impl AgentKind
impl AgentKind
Sourcepub const ALL: &[AgentKind]
pub const ALL: &[AgentKind]
All CLI-backed agent kinds, in display order.
AgentKind::Harness runs in process, so it is never discovered from
PATH and stays out of this list.
Sourcepub fn executable_name(self) -> Option<&'static str>
pub fn executable_name(self) -> Option<&'static str>
Returns the provider CLI executable name, or None for the in-process
harness.
Sourcepub fn models(self) -> &'static [AgentModel]
pub fn models(self) -> &'static [AgentModel]
Returns this provider’s models in their catalog display order.
Antigravity also serves Claude Opus and Sonnet, and the harness serves
the Codex models available through OpenAI’s Responses API, beside
their own.
Sourcepub fn default_model(self) -> AgentModel
pub fn default_model(self) -> AgentModel
Returns the default model for this agent kind.
Sourcepub fn parse_model(self, value: &str) -> Option<AgentModel>
pub fn parse_model(self, value: &str) -> Option<AgentModel>
Parses a provider-specific model string for this agent kind.
Sourcepub fn supports_model(self, model: AgentModel) -> bool
pub fn supports_model(self, model: AgentModel) -> bool
Returns whether this provider can run the given model. Only
AgentKind::Harness runs served AgentModel::OpenAiCompatible
models.
Sourcepub fn supports_speed_mode(self) -> bool
pub fn supports_speed_mode(self) -> bool
Returns whether this provider exposes a response-speed control.
Claude and Codex accept a per-turn speed selection, so /speed offers
the picker and session surfaces display the active SpeedMode.
Antigravity has no equivalent control, so neither the command nor the
speed display is offered for it.
Trait Implementations§
Source§impl AgentSelectionMetadata for AgentKind
impl AgentSelectionMetadata for AgentKind
impl Copy for AgentKind
impl Eq for AgentKind
Source§impl FromStr for AgentKind
Parses a provider name.
impl FromStr for AgentKind
Parses a provider name.
The retired gemini provider name parses as AgentKind::Antigravity,
which serves the same models, so saved settings and graph snapshots from
the removed Gemini CLI backend keep loading.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.