pub struct GoogleProvider { /* private fields */ }Expand description
Google Gemini API provider.
Implementations§
Trait Implementations§
Source§impl Default for GoogleProvider
impl Default for GoogleProvider
Source§impl Provider for GoogleProvider
impl Provider for GoogleProvider
Source§fn stream(
&self,
model: &Model,
context: Context,
options: RequestOptions,
api_key: &str,
) -> Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send>>
fn stream( &self, model: &Model, context: Context, options: RequestOptions, api_key: &str, ) -> Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send>>
Stream a completion response.
Source§fn resolve_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
auth: &'life1 AuthStore,
) -> Pin<Box<dyn Future<Output = Result<ApiKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
auth: &'life1 AuthStore,
) -> Pin<Box<dyn Future<Output = Result<ApiKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve an API key for this provider.
Source§fn transport_capabilities(&self) -> TransportCapabilities
fn transport_capabilities(&self) -> TransportCapabilities
Transport capabilities exposed to the runtime. Providers should only
report features implemented by this crate, not features merely present
in the upstream vendor API.
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