vapi_client/models/
update_trieve_knowledge_base_dto.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 UpdateTrieveKnowledgeBaseDto {
16    /// This is the name of the knowledge base.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// 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.
20    #[serde(rename = "searchPlan", skip_serializing_if = "Option::is_none")]
21    pub search_plan: Option<models::TrieveKnowledgeBaseSearchPlan>,
22    #[serde(rename = "createPlan", skip_serializing_if = "Option::is_none")]
23    pub create_plan: Option<models::TrieveKnowledgeBaseImport>,
24}
25
26impl UpdateTrieveKnowledgeBaseDto {
27    pub fn new() -> UpdateTrieveKnowledgeBaseDto {
28        UpdateTrieveKnowledgeBaseDto {
29            name: None,
30            search_plan: None,
31            create_plan: None,
32        }
33    }
34}