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.
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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