pub struct AnthropicConfig {
pub base_url: String,
pub api_key: String,
pub model: ResolvedModelConfig,
pub anthropic_version: String,
}Expand description
Deployment-side credentials + endpoint for the Anthropic Messages API.
max_tokens is required by Anthropic on every request, so we hold it
here (default below) rather than relying on the agent recipe.
Fields§
§base_url: String§api_key: String§model: ResolvedModelConfig§anthropic_version: StringWire-format version pin. Defaults to “2023-06-01” — the only one supported by Messages API at time of writing. Override if Anthropic ever publishes a newer one we want to opt into.
Implementations§
Source§impl AnthropicConfig
impl AnthropicConfig
Sourcepub const DEFAULT_VERSION: &'static str = "2023-06-01"
pub const DEFAULT_VERSION: &'static str = "2023-06-01"
Default anthropic-version header value the client sends if HR
doesn’t override it.
Trait Implementations§
Source§impl Clone for AnthropicConfig
impl Clone for AnthropicConfig
Source§fn clone(&self) -> AnthropicConfig
fn clone(&self) -> AnthropicConfig
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 moreAuto Trait Implementations§
impl Freeze for AnthropicConfig
impl RefUnwindSafe for AnthropicConfig
impl Send for AnthropicConfig
impl Sync for AnthropicConfig
impl Unpin for AnthropicConfig
impl UnsafeUnpin for AnthropicConfig
impl UnwindSafe for AnthropicConfig
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