pub struct AnthropicModelConfig {
pub api_key: String,
pub model: String,
pub api_version: String,
pub api_base_url: Option<String>,
pub max_tokens: u32,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub thinking_budget_tokens: Option<usize>,
}Expand description
Runtime configuration for AnthropicModel.
Fields§
§api_key: StringAnthropic API key.
model: StringModel id (for example claude-sonnet-4-5).
api_version: StringAnthropic API version header value.
api_base_url: Option<String>Optional base URL override for proxies or compatible endpoints.
max_tokens: u32Maximum output tokens per call.
temperature: Option<f32>Optional sampling temperature.
top_p: Option<f32>Optional nucleus sampling parameter.
thinking_budget_tokens: Option<usize>Optional budget for extended thinking tokens.
Implementations§
Trait Implementations§
Source§impl Clone for AnthropicModelConfig
impl Clone for AnthropicModelConfig
Source§fn clone(&self) -> AnthropicModelConfig
fn clone(&self) -> AnthropicModelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnthropicModelConfig
impl RefUnwindSafe for AnthropicModelConfig
impl Send for AnthropicModelConfig
impl Sync for AnthropicModelConfig
impl Unpin for AnthropicModelConfig
impl UnsafeUnpin for AnthropicModelConfig
impl UnwindSafe for AnthropicModelConfig
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