pub struct ClientBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ClientBuilder<'a>
Create a new anthropic client using the builder
impl<'a> ClientBuilder<'a>
Create a new anthropic client using the builder
§Example
use rig::providers::anthropic::{ClientBuilder, self};
// Initialize the Anthropic client
let anthropic_client = ClientBuilder::new("your-claude-api-key")
.anthropic_version(ANTHROPIC_VERSION_LATEST)
.anthropic_beta("prompt-caching-2024-07-31")
.build()Trait Implementations§
Source§impl<'a> Clone for ClientBuilder<'a>
impl<'a> Clone for ClientBuilder<'a>
Source§fn clone(&self) -> ClientBuilder<'a>
fn clone(&self) -> ClientBuilder<'a>
Returns a copy 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<'a> Freeze for ClientBuilder<'a>
impl<'a> RefUnwindSafe for ClientBuilder<'a>
impl<'a> Send for ClientBuilder<'a>
impl<'a> Sync for ClientBuilder<'a>
impl<'a> Unpin for ClientBuilder<'a>
impl<'a> UnwindSafe for ClientBuilder<'a>
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