pub struct MistralProvider { /* private fields */ }Expand description
Mistral provider implementation. Mistral AI provider
Implementations§
Trait Implementations§
Source§impl Clone for MistralProvider
impl Clone for MistralProvider
Source§fn clone(&self) -> MistralProvider
fn clone(&self) -> MistralProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MistralProvider
impl Default for MistralProvider
Source§impl Provider for MistralProvider
impl Provider for MistralProvider
Source§fn stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
model: &'life1 Model,
context: &'life2 Context,
options: Option<StreamOptions>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = ProviderEvent> + Send>>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
model: &'life1 Model,
context: &'life2 Context,
options: Option<StreamOptions>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = ProviderEvent> + Send>>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Stream assistant message events
Auto Trait Implementations§
impl Freeze for MistralProvider
impl !RefUnwindSafe for MistralProvider
impl Send for MistralProvider
impl Sync for MistralProvider
impl Unpin for MistralProvider
impl UnsafeUnpin for MistralProvider
impl !UnwindSafe for MistralProvider
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