pub enum AgentModel {
Gpt55,
Gemini3FlashPreview,
Gemini35Flash,
Gemini31FlashLitePreview,
Gemini31ProPreview,
Gpt54Mini,
Gpt53CodexSpark,
ClaudeOpus48,
ClaudeSonnet5,
ClaudeFable5,
ClaudeHaiku4520251001,
}Expand description
Supported agent model names across all providers.
Gemini model ids are shared by the direct Gemini and Antigravity providers,
so provider ownership lives on AgentSelection rather than on these
variants.
Variants§
Gpt55
Codex model backed by gpt-5.5.
Gemini3FlashPreview
Fast Gemini preview model backed by gemini-3-flash-preview.
Gemini35Flash
Fast Gemini model backed by gemini-3.5-flash.
Gemini31FlashLitePreview
Lightweight Gemini preview model backed by
gemini-3.1-flash-lite-preview.
Gemini31ProPreview
Higher-quality Gemini preview model backed by gemini-3.1-pro-preview.
Gpt54Mini
Smaller Codex model backed by gpt-5.4-mini.
Gpt53CodexSpark
Codex spark model backed by gpt-5.3-codex-spark.
ClaudeOpus48
Claude Opus model backed by claude-opus-4-8.
ClaudeSonnet5
Claude Sonnet model backed by claude-sonnet-5.
ClaudeFable5
Claude Fable model backed by claude-fable-5.
ClaudeHaiku4520251001
Claude Haiku model backed by claude-haiku-4-5-20251001.
Implementations§
Source§impl AgentModel
impl AgentModel
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the stable wire/model identifier used in persistence and CLI invocations.
Sourcepub fn provider_model_str(self) -> &'static str
pub fn provider_model_str(self) -> &'static str
Returns the model identifier passed to provider transports.
Antigravity and Gemini use the same raw Gemini CLI model ids; callers
route those ids through the provider stored on AgentSelection.
Sourcepub fn parse_persisted(value: &str) -> Result<Self, String>
pub fn parse_persisted(value: &str) -> Result<Self, String>
Parses one persisted model identifier and upgrades retired aliases.
Stored retired Claude Opus, Claude Sonnet, and Codex aliases are
migrated forward so existing projects and sessions continue loading
after model removals.
Raw gemini-* ids parse to shared Gemini model variants; persisted
session agents decide whether Gemini or Antigravity owns the session.
§Errors
Returns an error when value is not a known current or retired model
identifier.
Trait Implementations§
Source§impl AgentSelectionMetadata for AgentModel
impl AgentSelectionMetadata for AgentModel
Source§impl Clone for AgentModel
impl Clone for AgentModel
Source§fn clone(&self) -> AgentModel
fn clone(&self) -> AgentModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AgentModel
Source§impl Debug for AgentModel
impl Debug for AgentModel
impl Eq for AgentModel
Source§impl FromStr for AgentModel
impl FromStr for AgentModel
Source§impl PartialEq for AgentModel
impl PartialEq for AgentModel
Source§fn eq(&self, other: &AgentModel) -> bool
fn eq(&self, other: &AgentModel) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentModel
Auto Trait Implementations§
impl Freeze for AgentModel
impl RefUnwindSafe for AgentModel
impl Send for AgentModel
impl Sync for AgentModel
impl Unpin for AgentModel
impl UnsafeUnpin for AgentModel
impl UnwindSafe for AgentModel
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.