pub struct LiveGenerationConfigBuilder(/* private fields */);Expand description
Builder for LiveGenerationConfig.
Implementations§
Source§impl LiveGenerationConfigBuilder
impl LiveGenerationConfigBuilder
pub fn stop_sequences(self, value: impl Into<Vec<String>>) -> Self
pub fn response_mime_type(self, value: impl Into<String>) -> Self
pub fn response_schema(self, value: impl Into<Schema>) -> Self
pub fn response_json_schema_internal(self, value: impl Into<Value>) -> Self
pub fn response_json_schema(self, value: impl Into<Value>) -> Self
pub fn response_modalities(self, value: impl Into<Vec<Modality>>) -> Self
pub fn candidate_count(self, value: impl Into<i64>) -> Self
pub fn max_output_tokens(self, value: impl Into<i64>) -> Self
pub fn temperature(self, value: impl Into<f64>) -> Self
pub fn top_p(self, value: impl Into<f64>) -> Self
pub fn top_k(self, value: impl Into<Number>) -> Self
pub fn seed(self, value: impl Into<i64>) -> Self
pub fn presence_penalty(self, value: impl Into<f64>) -> Self
pub fn frequency_penalty(self, value: impl Into<f64>) -> Self
pub fn response_logprobs(self, value: impl Into<bool>) -> Self
pub fn logprobs(self, value: impl Into<i64>) -> Self
pub fn enable_enhanced_civic_answers(self, value: impl Into<bool>) -> Self
pub fn speech_config(self, value: impl Into<LiveSpeechConfig>) -> Self
pub fn thinking_config(self, value: impl Into<ThinkingConfig>) -> Self
pub fn image_config(self, value: impl Into<ImageConfig>) -> Self
pub fn media_resolution( self, value: impl Into<GenerationMediaResolution>, ) -> Self
pub fn response_format(self, value: impl Into<ResponseFormatConfig>) -> Self
pub fn enable_affective_dialog(self, value: impl Into<bool>) -> Self
pub fn translation_config(self, value: impl Into<TranslationConfig>) -> Self
pub fn audio_transcription_config( self, value: impl Into<AudioTranscriptionConfig>, ) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> LiveGenerationConfig
pub fn build(self) -> LiveGenerationConfig
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for LiveGenerationConfigBuilder
impl RefUnwindSafe for LiveGenerationConfigBuilder
impl Send for LiveGenerationConfigBuilder
impl Sync for LiveGenerationConfigBuilder
impl Unpin for LiveGenerationConfigBuilder
impl UnsafeUnpin for LiveGenerationConfigBuilder
impl UnwindSafe for LiveGenerationConfigBuilder
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