vapi_client/models/
server_message_response_knowledge_base_request.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};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct ServerMessageResponseKnowledgeBaseRequest {
19    /// This is the list of documents that will be sent to the model alongside the `messages` to generate a response.
20    #[serde(rename = "documents", skip_serializing_if = "Option::is_none")]
21    pub documents: Option<Vec<models::KnowledgeBaseResponseDocument>>,
22    /// This can be used to skip the model output generation and speak a custom message.
23    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
24    pub message: Option<models::CustomMessage>,
25}
26
27impl ServerMessageResponseKnowledgeBaseRequest {
28    pub fn new() -> ServerMessageResponseKnowledgeBaseRequest {
29        ServerMessageResponseKnowledgeBaseRequest {
30            documents: None,
31            message: None,
32        }
33    }
34}