pub struct GoogleSettings {
pub base_url: Option<Url>,
pub api_key: Option<SecretString>,
pub headers: Headers,
pub name: Option<String>,
pub transport: Option<SharedTransport>,
pub id_generator: Option<Arc<dyn IdGenerator>>,
}Expand description
Settings of create_google.
Fields§
§base_url: Option<Url>Base URL; defaults to https://generativelanguage.googleapis.com/v1beta.
api_key: Option<SecretString>API key sent as x-goog-api-key; defaults to
GOOGLE_GENERATIVE_AI_API_KEY, read on the first request.
headers: HeadersExtra headers for every request.
name: Option<String>Provider name used in provider ids and as the additional option key
(default google).
transport: Option<SharedTransport>HTTP transport (default: the shared reqwest transport).
id_generator: Option<Arc<dyn IdGenerator>>Generator for synthetic ids (tool calls without an id, sources).
Trait Implementations§
Source§impl Debug for GoogleSettings
impl Debug for GoogleSettings
Source§impl Default for GoogleSettings
impl Default for GoogleSettings
Source§fn default() -> GoogleSettings
fn default() -> GoogleSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleSettings
impl !UnwindSafe for GoogleSettings
impl Freeze for GoogleSettings
impl Send for GoogleSettings
impl Sync for GoogleSettings
impl Unpin for GoogleSettings
impl UnsafeUnpin for GoogleSettings
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