pub struct AnthropicProvider { /* private fields */ }Expand description
Calls api.anthropic.com/v1/messages with an API key.
Supports all Anthropic Claude models:
claude-sonnet-4-20250514— balanced (default)claude-opus-4-20250514— most capableclaude-haiku-3-20250414— fastest, cheapest
Set ANTHROPIC_API_KEY to your API key from console.anthropic.com.
Override model with ANTHROPIC_MODEL.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnthropicProvider
impl !RefUnwindSafe for AnthropicProvider
impl Send for AnthropicProvider
impl Sync for AnthropicProvider
impl Unpin for AnthropicProvider
impl UnsafeUnpin for AnthropicProvider
impl !UnwindSafe for AnthropicProvider
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