pub struct CreateInteractionRequest {Show 17 fields
pub model: Option<String>,
pub agent: Option<String>,
pub input: InteractionInput,
pub system_instruction: Option<String>,
pub tools: Vec<InteractionTool>,
pub response_format: Option<ResponseFormat>,
pub stream: Option<bool>,
pub store: Option<bool>,
pub background: Option<bool>,
pub generation_config: Option<InteractionGenerationConfig>,
pub agent_config: Option<AgentConfig>,
pub previous_interaction_id: Option<String>,
pub environment: Option<EnvironmentConfigOrString>,
pub cached_content: Option<String>,
pub response_modalities: Vec<ResponseModality>,
pub service_tier: Option<ServiceTier>,
pub webhook_config: Option<WebhookConfig>,
}Expand description
Request body for creating an interaction.
Fields§
§model: Option<String>§agent: Option<String>§input: InteractionInput§system_instruction: Option<String>§tools: Vec<InteractionTool>§response_format: Option<ResponseFormat>§stream: Option<bool>§store: Option<bool>§background: Option<bool>§generation_config: Option<InteractionGenerationConfig>§agent_config: Option<AgentConfig>§previous_interaction_id: Option<String>§environment: Option<EnvironmentConfigOrString>§cached_content: Option<String>§response_modalities: Vec<ResponseModality>§service_tier: Option<ServiceTier>§webhook_config: Option<WebhookConfig>Trait Implementations§
Source§impl Clone for CreateInteractionRequest
impl Clone for CreateInteractionRequest
Source§fn clone(&self) -> CreateInteractionRequest
fn clone(&self) -> CreateInteractionRequest
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 CreateInteractionRequest
impl Debug for CreateInteractionRequest
Source§impl<'de> Deserialize<'de> for CreateInteractionRequest
impl<'de> Deserialize<'de> for CreateInteractionRequest
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 CreateInteractionRequest
impl RefUnwindSafe for CreateInteractionRequest
impl Send for CreateInteractionRequest
impl Sync for CreateInteractionRequest
impl Unpin for CreateInteractionRequest
impl UnsafeUnpin for CreateInteractionRequest
impl UnwindSafe for CreateInteractionRequest
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