pub struct AnthropicClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for AnthropicClient
impl Clone for AnthropicClient
Source§impl LlmProvider for AnthropicClient
impl LlmProvider for AnthropicClient
Source§fn send<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
tools: Vec<Tool>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<ProviderResponseChunk, LlmError>> + Send + '_>>, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
tools: Vec<Tool>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<ProviderResponseChunk, LlmError>> + Send + '_>>, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send messages to the LLM and receive a streaming response. Read more
Source§fn provider_name(&self) -> &str
fn provider_name(&self) -> &str
Returns the provider name (e.g., “anthropic”, “openai”).
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Returns the model name (e.g., “claude-3-5-sonnet-20241022”).
Auto Trait Implementations§
impl Freeze for AnthropicClient
impl !RefUnwindSafe for AnthropicClient
impl Send for AnthropicClient
impl Sync for AnthropicClient
impl Unpin for AnthropicClient
impl UnsafeUnpin for AnthropicClient
impl !UnwindSafe for AnthropicClient
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