pub struct GoogleModel { /* private fields */ }Expand description
Google Gemini provider adapter implementing ChatModel.
Implementations§
Source§impl GoogleModel
impl GoogleModel
Sourcepub fn new(config: GoogleModelConfig) -> Result<Self, ProviderError>
pub fn new(config: GoogleModelConfig) -> Result<Self, ProviderError>
Creates a model adapter from explicit config.
Trait Implementations§
Source§impl ChatModel for GoogleModel
impl ChatModel for GoogleModel
Source§fn invoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
messages: &'life1 [ModelMessage],
tools: &'life2 [ModelToolDefinition],
tool_choice: ModelToolChoice,
) -> Pin<Box<dyn Future<Output = Result<ModelCompletion, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn invoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
messages: &'life1 [ModelMessage],
tools: &'life2 [ModelToolDefinition],
tool_choice: ModelToolChoice,
) -> Pin<Box<dyn Future<Output = Result<ModelCompletion, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Invokes one model completion step for the current message history.
Source§impl Clone for GoogleModel
impl Clone for GoogleModel
Source§fn clone(&self) -> GoogleModel
fn clone(&self) -> GoogleModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GoogleModel
impl !RefUnwindSafe for GoogleModel
impl Send for GoogleModel
impl Sync for GoogleModel
impl Unpin for GoogleModel
impl UnsafeUnpin for GoogleModel
impl !UnwindSafe for GoogleModel
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