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