pub struct InteractionsRequest {Show 14 fields
pub model: Option<String>,
pub agent: Option<String>,
pub input: InteractionsInput,
pub system_instruction: Option<String>,
pub tools: Option<Vec<InteractionsTool>>,
pub response_format: Option<Value>,
pub response_mime_type: Option<String>,
pub stream: bool,
pub store: bool,
pub background: bool,
pub generation_config: Option<GenerationConfig>,
pub agent_config: Option<AgentConfig>,
pub response_modalities: Option<Vec<ResponseModality>>,
pub previous_interaction_id: Option<String>,
}Fields§
§model: Option<String>Model identifier (e.g., “gemini-2.5-flash”) Required if agent is not provided
agent: Option<String>Agent name (e.g., “deep-research-pro-preview-12-2025”) Required if model is not provided
input: InteractionsInputInput content - can be string or array of Content objects
system_instruction: Option<String>System instruction for the model
tools: Option<Vec<InteractionsTool>>Available tools
response_format: Option<Value>Response format for structured outputs
response_mime_type: Option<String>MIME type for the response (required if response_format is set)
stream: boolWhether to stream the response
store: boolWhether to store the interaction (default: true)
background: boolRun request in background (agents only)
generation_config: Option<GenerationConfig>Generation configuration
agent_config: Option<AgentConfig>Agent configuration (only applicable when agent is specified)
response_modalities: Option<Vec<ResponseModality>>Response modalities (text, image, audio)
previous_interaction_id: Option<String>Link to prior interaction for stateful conversations
Trait Implementations§
Source§impl Clone for InteractionsRequest
impl Clone for InteractionsRequest
Source§fn clone(&self) -> InteractionsRequest
fn clone(&self) -> InteractionsRequest
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 InteractionsRequest
impl Debug for InteractionsRequest
Source§impl Default for InteractionsRequest
impl Default for InteractionsRequest
Source§impl<'de> Deserialize<'de> for InteractionsRequest
impl<'de> Deserialize<'de> for InteractionsRequest
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
Source§impl Normalizable for InteractionsRequest
impl Normalizable for InteractionsRequest
Source§impl Serialize for InteractionsRequest
impl Serialize for InteractionsRequest
Source§impl Validate for InteractionsRequest
impl Validate for InteractionsRequest
Source§impl<'v_a> ValidateArgs<'v_a> for InteractionsRequest
impl<'v_a> ValidateArgs<'v_a> for InteractionsRequest
Auto Trait Implementations§
impl Freeze for InteractionsRequest
impl RefUnwindSafe for InteractionsRequest
impl Send for InteractionsRequest
impl Sync for InteractionsRequest
impl Unpin for InteractionsRequest
impl UnsafeUnpin for InteractionsRequest
impl UnwindSafe for InteractionsRequest
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