pub struct AnthropicProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ModelProvider for AnthropicProvider
impl ModelProvider for AnthropicProvider
fn name(&self) -> &str
fn complete<'life0, 'life1, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
config: &'life1 ModelConfig,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stream_complete<'life0, 'life1, 'async_trait>(
&'life0 self,
_messages: Vec<Message>,
_config: &'life1 ModelConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<String>> + Unpin + Send>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for AnthropicProvider
impl !RefUnwindSafe for AnthropicProvider
impl Send for AnthropicProvider
impl Sync for AnthropicProvider
impl Unpin 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