1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Vapi API
*
* Voice AI for developers.
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Analysis {
/// This is the summary of the call. Customize by setting `assistant.analysisPlan.summaryPrompt`.
#[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
pub summary: Option<String>,
/// This is the structured data extracted from the call. Customize by setting `assistant.analysisPlan.structuredDataPrompt` and/or `assistant.analysisPlan.structuredDataSchema`.
#[serde(rename = "structuredData", skip_serializing_if = "Option::is_none")]
pub structured_data: Option<serde_json::Value>,
/// This is the structured data catalog of the call. Customize by setting `assistant.analysisPlan.structuredDataMultiPlan`.
#[serde(
rename = "structuredDataMulti",
skip_serializing_if = "Option::is_none"
)]
pub structured_data_multi: Option<Vec<serde_json::Value>>,
/// This is the evaluation of the call. Customize by setting `assistant.analysisPlan.successEvaluationPrompt` and/or `assistant.analysisPlan.successEvaluationRubric`.
#[serde(rename = "successEvaluation", skip_serializing_if = "Option::is_none")]
pub success_evaluation: Option<String>,
}
impl Analysis {
pub fn new() -> Analysis {
Analysis {
summary: None,
structured_data: None,
structured_data_multi: None,
success_evaluation: None,
}
}
}