pub struct GenerateContentRequest {
pub contents: Vec<Content>,
pub generation_config: Option<GenerationConfig>,
pub safety_settings: Option<Vec<SafetySetting>>,
pub tools: Option<Vec<Tool>>,
pub tool_config: Option<ToolConfig>,
pub system_instruction: Option<Content>,
pub cached_content: Option<String>,
}Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
Expand description
Request to generate content
Fields§
§contents: Vec<Content>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The contents to generate content from
generation_config: Option<GenerationConfig>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The generation config
safety_settings: Option<Vec<SafetySetting>>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The safety settings
tools: Option<Vec<Tool>>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The tools that the model can use
tool_config: Option<ToolConfig>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The tool config
system_instruction: Option<Content>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The system instruction
cached_content: Option<String>Use crate::interactions::CreateInteractionRequest instead. See migration guide: interactions-api/migration-plan.md
The cached content to use
Trait Implementations§
Source§impl Clone for GenerateContentRequest
impl Clone for GenerateContentRequest
Source§fn clone(&self) -> GenerateContentRequest
fn clone(&self) -> GenerateContentRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more