pub enum AgentKind {
Antigravity,
Gemini,
Claude,
Codex,
}Expand description
Supported agent provider families.
Variants§
Antigravity
Google Antigravity CLI/backend.
Gemini
Google Gemini CLI/backend.
Claude
Anthropic Claude Code CLI/backend.
Codex
OpenAI Codex CLI/backend.
Implementations§
Source§impl AgentKind
impl AgentKind
Sourcepub fn executable_name(self) -> &'static str
pub fn executable_name(self) -> &'static str
Returns the provider CLI executable name.
Sourcepub fn default_model(self) -> AgentModel
pub fn default_model(self) -> AgentModel
Returns the default model for this agent kind.
Sourcepub fn model_str(self, model: AgentModel) -> Option<&'static str>
pub fn model_str(self, model: AgentModel) -> Option<&'static str>
Returns the model string when it belongs to this agent kind.
Sourcepub fn models(self) -> &'static [AgentModel]
pub fn models(self) -> &'static [AgentModel]
Returns the curated model list 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.
Trait Implementations§
Source§impl AgentSelectionMetadata for AgentKind
impl AgentSelectionMetadata for AgentKind
impl Copy for AgentKind
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
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.