pub struct GeminiProvider { /* private fields */ }Expand description
Google Gemini provider for fetching conversation history
Implementations§
Trait Implementations§
Source§impl CloudProvider for GeminiProvider
impl CloudProvider for GeminiProvider
Source§fn api_base_url(&self) -> &str
fn api_base_url(&self) -> &str
Get the API base URL
Source§fn is_authenticated(&self) -> bool
fn is_authenticated(&self) -> bool
Check if the provider is authenticated
Source§fn set_credentials(
&mut self,
api_key: Option<String>,
session_token: Option<String>,
)
fn set_credentials( &mut self, api_key: Option<String>, session_token: Option<String>, )
Set the API key or session token
Source§fn list_conversations(
&self,
_options: &FetchOptions,
) -> Result<Vec<CloudConversation>>
fn list_conversations( &self, _options: &FetchOptions, ) -> Result<Vec<CloudConversation>>
List available conversations
Source§fn fetch_conversation(&self, _id: &str) -> Result<CloudConversation>
fn fetch_conversation(&self, _id: &str) -> Result<CloudConversation>
Fetch a single conversation by ID
Source§fn api_key_env_var(&self) -> &'static str
fn api_key_env_var(&self) -> &'static str
Get the environment variable name for the API key
Source§fn load_api_key_from_env(&self) -> Option<String>
fn load_api_key_from_env(&self) -> Option<String>
Attempt to load API key from environment
Source§fn fetch_all_conversations(
&self,
options: &FetchOptions,
) -> Result<Vec<ChatSession>>
fn fetch_all_conversations( &self, options: &FetchOptions, ) -> Result<Vec<ChatSession>>
Fetch all conversations (with messages)
Auto Trait Implementations§
impl Freeze for GeminiProvider
impl !RefUnwindSafe for GeminiProvider
impl Send for GeminiProvider
impl Sync for GeminiProvider
impl Unpin for GeminiProvider
impl !UnwindSafe for GeminiProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more