pub struct AnthropicConfig {
pub extended_thinking_enabled: bool,
pub interleaved_thinking_beta: String,
pub interleaved_thinking_budget_tokens: u32,
pub interleaved_thinking_type_enabled: String,
pub tool_search: ToolSearchConfig,
pub effort: String,
pub count_tokens_enabled: bool,
}Expand description
Anthropic-specific provider configuration
Fields§
§extended_thinking_enabled: boolEnable extended thinking feature for Anthropic models When enabled, Claude uses internal reasoning before responding, providing enhanced reasoning capabilities for complex tasks. Only supported by Claude 4, Claude 4.5, and Claude 3.7 Sonnet models. See: https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking
interleaved_thinking_beta: StringBeta header for interleaved thinking feature
interleaved_thinking_budget_tokens: u32Budget tokens for extended thinking (minimum: 1024, recommended: 10000+) Larger budgets enable more thorough analysis for complex problems. The model may not use the entire budget allocated.
interleaved_thinking_type_enabled: StringType value for enabling interleaved thinking
tool_search: ToolSearchConfigTool search configuration for dynamic tool discovery (advanced-tool-use beta)
effort: StringEffort level for token usage (high, medium, low) Controls how many tokens Claude uses when responding, trading off between response thoroughness and token efficiency. Only supported by Claude Opus 4.5 (claude-opus-4-5-20251101)
count_tokens_enabled: boolEnable token counting via the count_tokens endpoint When enabled, the agent can estimate input token counts before making API calls Useful for proactive management of rate limits and costs
Trait Implementations§
Source§impl Clone for AnthropicConfig
impl Clone for AnthropicConfig
Source§fn clone(&self) -> AnthropicConfig
fn clone(&self) -> AnthropicConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnthropicConfig
impl Debug for AnthropicConfig
Source§impl Default for AnthropicConfig
impl Default for AnthropicConfig
Source§impl<'de> Deserialize<'de> for AnthropicConfig
impl<'de> Deserialize<'de> for AnthropicConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for AnthropicConfig
impl JsonSchema for AnthropicConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more