pub enum UpdateGenConfig {
Show 18 variants
StopSequences(Vec<String>),
ResponseMimeType(Option<String>),
ResponseSchema(Option<Schema>),
ResponseModalities(Vec<Modality>),
CandidateCount(Option<i32>),
MaxOutputTokens(Option<i32>),
Temperature(Option<f32>),
TopP(Option<f32>),
TopK(Option<i32>),
Seed(Option<i32>),
PresencePenalty(Option<f32>),
FrequencyPenalty(Option<f32>),
ResponseLogprobs(Option<bool>),
Logprobs(Option<i32>),
EnableEnhancedCivicAnswers(Option<bool>),
SpeechConfig(Option<SpeechConfig>),
ThinkingConfig(Option<ThinkingConfig>),
MediaResolution(Option<MediaResolution>),
}Expand description
Helper enum for updating portion of the GenerationConfig struct.
Variants§
StopSequences(Vec<String>)
ResponseMimeType(Option<String>)
ResponseSchema(Option<Schema>)
ResponseModalities(Vec<Modality>)
CandidateCount(Option<i32>)
MaxOutputTokens(Option<i32>)
Temperature(Option<f32>)
TopP(Option<f32>)
TopK(Option<i32>)
Seed(Option<i32>)
PresencePenalty(Option<f32>)
FrequencyPenalty(Option<f32>)
ResponseLogprobs(Option<bool>)
Logprobs(Option<i32>)
EnableEnhancedCivicAnswers(Option<bool>)
SpeechConfig(Option<SpeechConfig>)
ThinkingConfig(Option<ThinkingConfig>)
MediaResolution(Option<MediaResolution>)
Trait Implementations§
Source§impl Clone for UpdateGenConfig
impl Clone for UpdateGenConfig
Source§fn clone(&self) -> UpdateGenConfig
fn clone(&self) -> UpdateGenConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateGenConfig
impl RefUnwindSafe for UpdateGenConfig
impl Send for UpdateGenConfig
impl Sync for UpdateGenConfig
impl Unpin for UpdateGenConfig
impl UnsafeUnpin for UpdateGenConfig
impl UnwindSafe for UpdateGenConfig
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