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};
12use utoipa::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18pub struct UpdateTrieveKnowledgeBaseDto {
19    /// This is the name of the knowledge base.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// 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.
23    #[serde(rename = "searchPlan", skip_serializing_if = "Option::is_none")]
24    pub search_plan: Option<models::TrieveKnowledgeBaseSearchPlan>,
25    #[serde(rename = "createPlan", skip_serializing_if = "Option::is_none")]
26    pub create_plan: Option<models::TrieveKnowledgeBaseCreatePlan>,
27}
28
29impl UpdateTrieveKnowledgeBaseDto {
30    pub fn new() -> UpdateTrieveKnowledgeBaseDto {
31        UpdateTrieveKnowledgeBaseDto {
32            name: None,
33            search_plan: None,
34            create_plan: None,
35        }
36    }
37}