pub struct GoogleProvider { /* private fields */ }Expand description
Google (Gemini) provider implementation. Google Generative AI provider
Implementations§
Trait Implementations§
Source§impl Clone for GoogleProvider
impl Clone for GoogleProvider
Source§fn clone(&self) -> GoogleProvider
fn clone(&self) -> GoogleProvider
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 GoogleProvider
impl Default for GoogleProvider
Source§impl Provider for GoogleProvider
impl Provider for GoogleProvider
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 GoogleProvider
impl !RefUnwindSafe for GoogleProvider
impl Send for GoogleProvider
impl Sync for GoogleProvider
impl Unpin for GoogleProvider
impl UnsafeUnpin for GoogleProvider
impl !UnwindSafe for GoogleProvider
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