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