pub struct GeminiClient<T: Transport> { /* private fields */ }Trait Implementations§
Source§impl<T: Transport> CompletionProvider for GeminiClient<T>
impl<T: Transport> CompletionProvider for GeminiClient<T>
Source§fn complete<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
messages: &'life1 mut Messages,
tool_declarations: Option<&'life2 dyn ToolDeclarations>,
options: Option<&'life3 ChatOptions>,
structured_output: Option<&'life4 Schema>,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, ChatFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn complete<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
messages: &'life1 mut Messages,
tool_declarations: Option<&'life2 dyn ToolDeclarations>,
options: Option<&'life3 ChatOptions>,
structured_output: Option<&'life4 Schema>,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, ChatFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Run one completion step. Read more
fn metadata(&self) -> Option<&ProviderMeta>
Source§impl<T: Transport> EmbeddingsProvider for GeminiClient<T>
impl<T: Transport> EmbeddingsProvider for GeminiClient<T>
Auto Trait Implementations§
impl<T> Freeze for GeminiClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for GeminiClient<T>
impl<T> Send for GeminiClient<T>
impl<T> Sync for GeminiClient<T>
impl<T> Unpin for GeminiClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for GeminiClient<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for GeminiClient<T>
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