pub struct GoogleAdapter { /* private fields */ }Expand description
Google Gemini adapter via the Generative Language REST API.
Uses API key authentication (not OAuth). Supports all Gemini models available through Google AI Studio.
Implementations§
Source§impl GoogleAdapter
impl GoogleAdapter
Trait Implementations§
Source§impl ModelAdapter for GoogleAdapter
impl ModelAdapter for GoogleAdapter
Source§fn system_name(&self) -> &'static str
fn system_name(&self) -> &'static str
OTel GenAI system name (e.g. “anthropic”, “openai”).
Source§fn default_model(&self) -> &str
fn default_model(&self) -> &str
Default model for this adapter (e.g. “claude-sonnet-4-6”).
Source§fn chat<'life0, 'async_trait>(
&'life0 self,
request: ModelRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ModelRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a chat request and return the response.
Source§fn structured_output<'life0, 'async_trait>(
&'life0 self,
request: StructuredRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn structured_output<'life0, 'async_trait>(
&'life0 self,
request: StructuredRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a structured output request, returning a JSON value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleAdapter
impl !UnwindSafe for GoogleAdapter
impl Freeze for GoogleAdapter
impl Send for GoogleAdapter
impl Sync for GoogleAdapter
impl Unpin for GoogleAdapter
impl UnsafeUnpin for GoogleAdapter
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