vapi_client/models/analysis.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 Analysis {
16 /// This is the summary of the call. Customize by setting `assistant.analysisPlan.summaryPrompt`.
17 #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
18 pub summary: Option<String>,
19 /// This is the structured data extracted from the call. Customize by setting `assistant.analysisPlan.structuredDataPrompt` and/or `assistant.analysisPlan.structuredDataSchema`.
20 #[serde(rename = "structuredData", skip_serializing_if = "Option::is_none")]
21 pub structured_data: Option<serde_json::Value>,
22 /// This is the evaluation of the call. Customize by setting `assistant.analysisPlan.successEvaluationPrompt` and/or `assistant.analysisPlan.successEvaluationRubric`.
23 #[serde(rename = "successEvaluation", skip_serializing_if = "Option::is_none")]
24 pub success_evaluation: Option<String>,
25}
26
27impl Analysis {
28 pub fn new() -> Analysis {
29 Analysis {
30 summary: None,
31 structured_data: None,
32 success_evaluation: None,
33 }
34 }
35}
36