pub struct GeminiModelInfo {Show 13 fields
pub name: String,
pub base_model_id: Option<String>,
pub version: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub input_token_limit: Option<u64>,
pub output_token_limit: Option<u64>,
pub supported_generation_methods: Option<Vec<String>>,
pub thinking: Option<bool>,
pub temperature: Option<f64>,
pub max_temperature: Option<f64>,
pub top_p: Option<f64>,
pub top_k: Option<u64>,
}Expand description
Information about a Gemini model.
Fields§
§name: StringResource name of the model, e.g. models/gemini-2.0-flash.
base_model_id: Option<String>Base model id, e.g. gemini-2.0-flash.
version: Option<String>Major version string, e.g. 2.0.
display_name: Option<String>Human-readable model name.
description: Option<String>Short description.
input_token_limit: Option<u64>Maximum number of input tokens allowed.
output_token_limit: Option<u64>Maximum number of output tokens allowed.
supported_generation_methods: Option<Vec<String>>Supported generation methods.
thinking: Option<bool>Whether this model supports thinking.
temperature: Option<f64>Default temperature.
max_temperature: Option<f64>Maximum temperature.
top_p: Option<f64>Default nucleus sampling threshold.
top_k: Option<u64>Default top-k value.
Trait Implementations§
Source§impl Clone for GeminiModelInfo
impl Clone for GeminiModelInfo
Source§fn clone(&self) -> GeminiModelInfo
fn clone(&self) -> GeminiModelInfo
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 moreSource§impl Debug for GeminiModelInfo
impl Debug for GeminiModelInfo
Source§impl<'de> Deserialize<'de> for GeminiModelInfo
impl<'de> Deserialize<'de> for GeminiModelInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GeminiModelInfo
impl PartialEq for GeminiModelInfo
Source§impl Serialize for GeminiModelInfo
impl Serialize for GeminiModelInfo
impl StructuralPartialEq for GeminiModelInfo
Auto Trait Implementations§
impl Freeze for GeminiModelInfo
impl RefUnwindSafe for GeminiModelInfo
impl Send for GeminiModelInfo
impl Sync for GeminiModelInfo
impl Unpin for GeminiModelInfo
impl UnsafeUnpin for GeminiModelInfo
impl UnwindSafe for GeminiModelInfo
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