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