vapi_client/models/
transcript_plan.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 TranscriptPlan {
16    /// This determines whether the transcript is stored in `call.artifact.transcript`. Defaults to true.  @default true
17    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
18    pub enabled: Option<bool>,
19    /// This is the name of the assistant in the transcript. Defaults to 'AI'.  Usage: - If you want to change the name of the assistant in the transcript, set this. Example, here is what the transcript would look like with `assistantName` set to 'Buyer': ``` User: Hello, how are you? Buyer: I'm fine. User: Do you want to buy a car? Buyer: No. ```  @default 'AI'
20    #[serde(rename = "assistantName", skip_serializing_if = "Option::is_none")]
21    pub assistant_name: Option<String>,
22    /// This is the name of the user in the transcript. Defaults to 'User'.  Usage: - If you want to change the name of the user in the transcript, set this. Example, here is what the transcript would look like with `userName` set to 'Seller': ``` Seller: Hello, how are you? AI: I'm fine. Seller: Do you want to buy a car? AI: No. ```  @default 'User'
23    #[serde(rename = "userName", skip_serializing_if = "Option::is_none")]
24    pub user_name: Option<String>,
25}
26
27impl TranscriptPlan {
28    pub fn new() -> TranscriptPlan {
29        TranscriptPlan {
30            enabled: None,
31            assistant_name: None,
32            user_name: None,
33        }
34    }
35}