pub struct GenerationConfig {
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub seed: Option<i64>,
pub stop_sequences: Option<Vec<String>>,
pub tool_choice: Option<ToolChoice>,
pub thinking_level: Option<ThinkingLevel>,
pub thinking_summaries: Option<ThinkingSummaries>,
pub max_output_tokens: Option<u32>,
pub speech_config: Option<Vec<SpeechConfig>>,
pub image_config: Option<ImageConfig>,
}Fields§
§temperature: Option<f32>§top_p: Option<f32>§seed: Option<i64>§stop_sequences: Option<Vec<String>>§tool_choice: Option<ToolChoice>§thinking_level: Option<ThinkingLevel>§thinking_summaries: Option<ThinkingSummaries>§max_output_tokens: Option<u32>§speech_config: Option<Vec<SpeechConfig>>§image_config: Option<ImageConfig>Trait Implementations§
Source§impl Clone for GenerationConfig
impl Clone for GenerationConfig
Source§fn clone(&self) -> GenerationConfig
fn clone(&self) -> GenerationConfig
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 GenerationConfig
impl Debug for GenerationConfig
Source§impl<'de> Deserialize<'de> for GenerationConfig
impl<'de> Deserialize<'de> for GenerationConfig
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 Serialize for GenerationConfig
impl Serialize for GenerationConfig
Source§impl Validate for GenerationConfig
impl Validate for GenerationConfig
Source§impl<'v_a> ValidateArgs<'v_a> for GenerationConfig
impl<'v_a> ValidateArgs<'v_a> for GenerationConfig
Auto Trait Implementations§
impl Freeze for GenerationConfig
impl RefUnwindSafe for GenerationConfig
impl Send for GenerationConfig
impl Sync for GenerationConfig
impl Unpin for GenerationConfig
impl UnsafeUnpin for GenerationConfig
impl UnwindSafe for GenerationConfig
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