vapi_client/models/client_message_hang.rs
1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClientMessageHang {
17 /// This is the type of the message. \"hang\" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as: - the model is too slow to respond - the voice is too slow to respond - the tool call is still waiting for a response from your server - etc.
18 #[serde(rename = "type")]
19 pub r#type: Type,
20}
21
22impl ClientMessageHang {
23 pub fn new(r#type: Type) -> ClientMessageHang {
24 ClientMessageHang { r#type }
25 }
26}
27/// This is the type of the message. \"hang\" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as: - the model is too slow to respond - the voice is too slow to respond - the tool call is still waiting for a response from your server - etc.
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum Type {
30 #[serde(rename = "hang")]
31 Hang,
32}
33
34impl Default for Type {
35 fn default() -> Type {
36 Self::Hang
37 }
38}