vapi_client/models/
server_message_response_message_response.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/// ServerMessageResponseMessageResponse : This is the response that is expected from the server to the message.  Note: Most messages don't expect a response. Only \"assistant-request\", \"tool-calls\" and \"transfer-destination-request\" do.
16/// This is the response that is expected from the server to the message.  Note: Most messages don't expect a response. Only \"assistant-request\", \"tool-calls\" and \"transfer-destination-request\" do.
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
18#[serde(untagged)]
19pub enum ServerMessageResponseMessageResponse {
20    ServerMessageResponseAssistantRequest(models::ServerMessageResponseAssistantRequest),
21    ServerMessageResponseKnowledgeBaseRequest(models::ServerMessageResponseKnowledgeBaseRequest),
22    ServerMessageResponseToolCalls(models::ServerMessageResponseToolCalls),
23    ServerMessageResponseTransferDestinationRequest(
24        models::ServerMessageResponseTransferDestinationRequest,
25    ),
26    ServerMessageResponseVoiceRequest(models::ServerMessageResponseVoiceRequest),
27}
28
29impl Default for ServerMessageResponseMessageResponse {
30    fn default() -> Self {
31        Self::ServerMessageResponseAssistantRequest(Default::default())
32    }
33}