pub struct CreateInteractionConfig {Show 15 fields
pub http_options: Option<HttpOptions>,
pub model: Option<String>,
pub agent: Option<String>,
pub input: InteractionInput,
pub tools: Option<Vec<Tool>>,
pub generation_config: Option<GenerationConfig>,
pub agent_config: Option<AgentConfig>,
pub background: Option<bool>,
pub store: Option<bool>,
pub previous_interaction_id: Option<String>,
pub response_format: Option<Value>,
pub response_mime_type: Option<String>,
pub response_modalities: Option<Vec<InteractionResponseModality>>,
pub system_instruction: Option<String>,
pub stream: Option<bool>,
}Expand description
Create Interaction 配置(请求体)。
Fields§
§http_options: Option<HttpOptions>Optional. HTTP request overrides (SDK only).
model: Option<String>The name of the Model used for generating the interaction.
agent: Option<String>The name of the Agent used for generating the interaction.
input: InteractionInput§tools: Option<Vec<Tool>>§generation_config: Option<GenerationConfig>§agent_config: Option<AgentConfig>§background: Option<bool>§store: Option<bool>§previous_interaction_id: Option<String>§response_format: Option<Value>§response_mime_type: Option<String>§response_modalities: Option<Vec<InteractionResponseModality>>§system_instruction: Option<String>§stream: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for CreateInteractionConfig
impl Clone for CreateInteractionConfig
Source§fn clone(&self) -> CreateInteractionConfig
fn clone(&self) -> CreateInteractionConfig
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 CreateInteractionConfig
impl Debug for CreateInteractionConfig
Source§impl<'de> Deserialize<'de> for CreateInteractionConfig
impl<'de> Deserialize<'de> for CreateInteractionConfig
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
Auto Trait Implementations§
impl Freeze for CreateInteractionConfig
impl RefUnwindSafe for CreateInteractionConfig
impl Send for CreateInteractionConfig
impl Sync for CreateInteractionConfig
impl Unpin for CreateInteractionConfig
impl UnsafeUnpin for CreateInteractionConfig
impl UnwindSafe for CreateInteractionConfig
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