vapi_client/models/
knowledge_base_response_document.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct KnowledgeBaseResponseDocument {
16    #[serde(rename = "content")]
18    pub content: String,
19    #[serde(rename = "similarity")]
21    pub similarity: f64,
22    #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
24    pub uuid: Option<String>,
25}
26
27impl KnowledgeBaseResponseDocument {
28    pub fn new(content: String, similarity: f64) -> KnowledgeBaseResponseDocument {
29        KnowledgeBaseResponseDocument {
30            content,
31            similarity,
32            uuid: None,
33        }
34    }
35}
36