pub struct AnthropicBackendConfig {
pub anthropic_base_url: String,
pub anthropic_auth_token: String,
pub max_tokens_per_generate: usize,
pub debug_dump_api_requests: bool,
pub max_request_bytes: usize,
pub retry: RetryPolicy,
pub effort: Option<Effort>,
}Expand description
Anthropic Messages API settings (BackendConfig::Anthropic).
Fields§
§anthropic_base_url: String§anthropic_auth_token: String§max_tokens_per_generate: usize§debug_dump_api_requests: bool§max_request_bytes: usizeMaximum serialized request body, including history, images, tools, and prompts.
retry: RetryPolicyTransient-failure retry for this endpoint ([gateways.NAME.retry]).
effort: Option<Effort>When set, enables Anthropic extended thinking at this effort level.
The request shape follows the model’s ThinkingMode: adaptive sends
thinking.type: "adaptive" plus output_config.effort; budget sends
thinking.type: "enabled" with a mapped budget_tokens; none sends
no thinking fields regardless of this value.
Defaults to Effort::DEFAULT so thinking is always on for interactive use.
Trait Implementations§
Source§impl Clone for AnthropicBackendConfig
impl Clone for AnthropicBackendConfig
Source§fn clone(&self) -> AnthropicBackendConfig
fn clone(&self) -> AnthropicBackendConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnthropicBackendConfig
impl Debug for AnthropicBackendConfig
Source§impl Default for AnthropicBackendConfig
impl Default for AnthropicBackendConfig
Source§impl<'de> Deserialize<'de> for AnthropicBackendConfig
impl<'de> Deserialize<'de> for AnthropicBackendConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnthropicBackendConfig
impl RefUnwindSafe for AnthropicBackendConfig
impl Send for AnthropicBackendConfig
impl Sync for AnthropicBackendConfig
impl Unpin for AnthropicBackendConfig
impl UnsafeUnpin for AnthropicBackendConfig
impl UnwindSafe for AnthropicBackendConfig
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