vapi_client/models/chat_input.rs
1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ChatInput : This is the input text for the chat. Can be a string or an array of chat messages.
15/// This is the input text for the chat. Can be a string or an array of chat messages.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum ChatInput {
19 String(String),
20 MessageArray(Vec<models::MessageArrayInner>),
21}
22
23impl Default for ChatInput {
24 fn default() -> Self {
25 Self::String(Default::default())
26 }
27}