vapi_client/models/
update_trieve_knowledge_base_dto.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 UpdateTrieveKnowledgeBaseDto {
17    /// This is the name of the knowledge base.
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// This is the searching plan used when searching for relevant chunks from the vector store.  You should configure this if you're running into these issues: - Too much unnecessary context is being fed as knowledge base context. - Not enough relevant context is being fed as knowledge base context.
21    #[serde(rename = "searchPlan", skip_serializing_if = "Option::is_none")]
22    pub search_plan: Option<models::TrieveKnowledgeBaseSearchPlan>,
23    #[serde(rename = "createPlan", skip_serializing_if = "Option::is_none")]
24    pub create_plan: Option<models::TrieveKnowledgeBaseCreatePlan>,
25}
26
27impl UpdateTrieveKnowledgeBaseDto {
28    pub fn new() -> UpdateTrieveKnowledgeBaseDto {
29        UpdateTrieveKnowledgeBaseDto {
30            name: None,
31            search_plan: None,
32            create_plan: None,
33        }
34    }
35}