pub struct GoogleLanguageModelOptions {Show 15 fields
pub response_modalities: Option<Vec<String>>,
pub thinking_config: Option<ThinkingConfig>,
pub cached_content: Option<String>,
pub structured_outputs: Option<bool>,
pub safety_settings: Option<Vec<SafetySetting>>,
pub threshold: Option<String>,
pub audio_timestamp: Option<bool>,
pub labels: Option<BTreeMap<String, String>>,
pub media_resolution: Option<String>,
pub image_config: Option<ImageConfig>,
pub retrieval_config: Option<JsonObject>,
pub stream_function_call_arguments: Option<bool>,
pub service_tier: Option<String>,
pub shared_request_type: Option<String>,
pub request_type: Option<String>,
}Expand description
Language model options (provider_options["google"]).
Fields§
§response_modalities: Option<Vec<String>>Response modalities (TEXT, IMAGE).
thinking_config: Option<ThinkingConfig>Thinking configuration.
cached_content: Option<String>Name of a cached content resource.
structured_outputs: Option<bool>Whether JSON response formats send responseSchema (default true).
safety_settings: Option<Vec<SafetySetting>>Explicit safety settings.
threshold: Option<String>Threshold applied to the four configurable harm categories.
audio_timestamp: Option<bool>Whether audio timestamps are understood.
labels: Option<BTreeMap<String, String>>Request labels.
media_resolution: Option<String>Media resolution (MEDIA_RESOLUTION_LOW, …).
image_config: Option<ImageConfig>Image generation configuration.
retrieval_config: Option<JsonObject>Retrieval configuration ({latLng: {latitude, longitude}}) added to
toolConfig.
stream_function_call_arguments: Option<bool>Vertex AI only: stream function call arguments.
service_tier: Option<String>Service tier (standard, flex, priority).
Vertex AI only: shared request type header.
request_type: Option<String>Vertex AI only: request type header.
Trait Implementations§
Source§impl Clone for GoogleLanguageModelOptions
impl Clone for GoogleLanguageModelOptions
Source§fn clone(&self) -> GoogleLanguageModelOptions
fn clone(&self) -> GoogleLanguageModelOptions
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 moreSource§impl Debug for GoogleLanguageModelOptions
impl Debug for GoogleLanguageModelOptions
Source§impl Default for GoogleLanguageModelOptions
impl Default for GoogleLanguageModelOptions
Source§fn default() -> GoogleLanguageModelOptions
fn default() -> GoogleLanguageModelOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleLanguageModelOptions
impl<'de> Deserialize<'de> for GoogleLanguageModelOptions
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
impl StructuralPartialEq for GoogleLanguageModelOptions
Auto Trait Implementations§
impl Freeze for GoogleLanguageModelOptions
impl RefUnwindSafe for GoogleLanguageModelOptions
impl Send for GoogleLanguageModelOptions
impl Sync for GoogleLanguageModelOptions
impl Unpin for GoogleLanguageModelOptions
impl UnsafeUnpin for GoogleLanguageModelOptions
impl UnwindSafe for GoogleLanguageModelOptions
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