pub struct GoogleModelConfig {
pub api_key: String,
pub model: String,
pub api_base_url: Option<String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub max_output_tokens: Option<u32>,
pub thinking_budget_tokens: Option<u32>,
pub include_thoughts: Option<bool>,
}Expand description
Runtime configuration for GoogleModel.
Fields§
§api_key: StringGoogle API key.
model: StringModel id (for example gemini-2.5-flash).
api_base_url: Option<String>Optional base URL override.
temperature: Option<f32>Optional sampling temperature.
top_p: Option<f32>Optional nucleus sampling parameter.
max_output_tokens: Option<u32>Optional max output tokens.
thinking_budget_tokens: Option<u32>Optional reasoning/thinking token budget.
include_thoughts: Option<bool>Whether to include thought parts in responses when supported.
Implementations§
Trait Implementations§
Source§impl Clone for GoogleModelConfig
impl Clone for GoogleModelConfig
Source§fn clone(&self) -> GoogleModelConfig
fn clone(&self) -> GoogleModelConfig
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 GoogleModelConfig
impl RefUnwindSafe for GoogleModelConfig
impl Send for GoogleModelConfig
impl Sync for GoogleModelConfig
impl Unpin for GoogleModelConfig
impl UnsafeUnpin for GoogleModelConfig
impl UnwindSafe for GoogleModelConfig
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