pub struct AnthropicClient { /* private fields */ }Expand description
Wrapper around the Anthropic LLM API client.
Implementations§
Trait Implementations§
Source§impl LlmClientTrait for AnthropicClient
impl LlmClientTrait for AnthropicClient
fn send_message<'life0, 'async_trait>(
&'life0 self,
request_body: Value,
) -> Pin<Box<dyn Future<Output = Result<ResponseMessage, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn client_type(&self) -> ClientLlm
Auto Trait Implementations§
impl !RefUnwindSafe for AnthropicClient
impl !UnwindSafe for AnthropicClient
impl Freeze for AnthropicClient
impl Send for AnthropicClient
impl Sync for AnthropicClient
impl Unpin for AnthropicClient
impl UnsafeUnpin 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