vapi_client/models/client_message_hang.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ClientMessageHang {
16 /// 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.
17 #[serde(rename = "type")]
18 pub r#type: Type,
19}
20
21impl ClientMessageHang {
22 pub fn new(r#type: Type) -> ClientMessageHang {
23 ClientMessageHang {
24 r#type,
25 }
26 }
27}
28/// 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.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Type {
31 #[serde(rename = "hang")]
32 Hang,
33}
34
35impl Default for Type {
36 fn default() -> Type {
37 Self::Hang
38 }
39}
40