pub struct Model;Expand description
Provider-agnostic model identifiers.
Constants are provided for well-known Claude models, but any string
is accepted - custom AgentProvider implementations interpret the
model identifier however they wish.
§Examples
use ironflow_core::prelude::*;
let provider = ClaudeCodeProvider::new();
// Using a built-in constant
let r = Agent::new()
.prompt("hi")
.model(Model::SONNET)
.run(&provider)
.await?;
// Using a custom model string
let r = Agent::new()
.prompt("hi")
.model("mistral-large-latest")
.run(&provider)
.await?;Implementations§
Source§impl Model
impl Model
Sourcepub const SONNET_46_1M: &str = "claude-sonnet-4-6[1m]"
pub const SONNET_46_1M: &str = "claude-sonnet-4-6[1m]"
Claude Sonnet 4.6 with 1M token context window.
Sourcepub const OPUS_46_1M: &str = "claude-opus-4-6[1m]"
pub const OPUS_46_1M: &str = "claude-opus-4-6[1m]"
Claude Opus 4.6 with 1M token context window.
Sourcepub const OPUS_47: &str = "claude-opus-4-7"
pub const OPUS_47: &str = "claude-opus-4-7"
Claude Opus 4.7 - previous flagship, 1M token context native.
Sourcepub const OPUS_47_1M: &str = "claude-opus-4-7[1m]"
pub const OPUS_47_1M: &str = "claude-opus-4-7[1m]"
Claude Opus 4.7 with 1M token context window explicit.
Sourcepub const OPUS_48: &str = "claude-opus-4-8"
pub const OPUS_48: &str = "claude-opus-4-8"
Claude Opus 4.8 - previous Opus flagship, 1M token context native.
Sourcepub const OPUS_48_1M: &str = "claude-opus-4-8[1m]"
pub const OPUS_48_1M: &str = "claude-opus-4-8[1m]"
Claude Opus 4.8 with 1M token context window explicit.
Sourcepub const FABLE_5: &str = "claude-fable-5"
pub const FABLE_5: &str = "claude-fable-5"
Claude Fable 5 - most capable widely released model, 1M token context native.
Sourcepub const MYTHOS_5: &str = "claude-mythos-5"
pub const MYTHOS_5: &str = "claude-mythos-5"
Claude Mythos 5 - Fable 5 capabilities, limited availability (Project Glasswing).
Sourcepub const OPUS_5: &str = "claude-opus-5"
pub const OPUS_5: &str = "claude-opus-5"
Claude Opus 5 - current flagship for agentic coding, 1M token context native.
Sourcepub const OPUS_5_1M: &str = "claude-opus-5[1m]"
pub const OPUS_5_1M: &str = "claude-opus-5[1m]"
Claude Opus 5 with 1M token context window explicit.
Sourcepub const SONNET_5: &str = "claude-sonnet-5"
pub const SONNET_5: &str = "claude-sonnet-5"
Claude Sonnet 5 - best speed/intelligence balance, 1M token context native.
Sourcepub const SONNET_5_1M: &str = "claude-sonnet-5[1m]"
pub const SONNET_5_1M: &str = "claude-sonnet-5[1m]"
Claude Sonnet 5 with 1M token context window explicit.