pub struct GenerationConfig {
pub thinking_config: Option<ThinkingConfig>,
pub stop_sequences: Option<Vec<String>>,
pub response_mime_type: Option<ResponseMimeType>,
pub response_schema: Option<Schema>,
pub candidate_count: Option<i32>,
pub max_output_tokens: Option<i32>,
pub temperature: Option<f32>,
pub top_p: Option<f64>,
pub top_k: Option<i32>,
pub presence_penalty: Option<f32>,
pub frequence_penalty: Option<f32>,
pub response_logprobs: Option<bool>,
}Fields§
§thinking_config: Option<ThinkingConfig>§stop_sequences: Option<Vec<String>>§response_mime_type: Option<ResponseMimeType>§response_schema: Option<Schema>§candidate_count: Option<i32>§max_output_tokens: Option<i32>The maximum number of tokens to include in a response candidate
temperature: Option<f32>§top_p: Option<f64>§top_k: Option<i32>§presence_penalty: Option<f32>§frequence_penalty: Option<f32>§response_logprobs: Option<bool>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 Default for GenerationConfig
impl Default for GenerationConfig
Source§fn default() -> GenerationConfig
fn default() -> GenerationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GenerationConfig
impl RefUnwindSafe for GenerationConfig
impl Send for GenerationConfig
impl Sync for GenerationConfig
impl Unpin 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