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 streaming response
Source§fn provider_name(&self) -> &str
fn provider_name(&self) -> &str
Get provider name
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Get model name
Source§fn clone_box(&self) -> Box<dyn LlmProvider>
fn clone_box(&self) -> Box<dyn LlmProvider>
Clone the provider
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