vapi_client/models/transcript_plan.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};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct TranscriptPlan {
19 /// This determines whether the transcript is stored in `call.artifact.transcript`. Defaults to true. @default true
20 #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
21 pub enabled: Option<bool>,
22 /// 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'
23 #[serde(rename = "assistantName", skip_serializing_if = "Option::is_none")]
24 pub assistant_name: Option<String>,
25 /// 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'
26 #[serde(rename = "userName", skip_serializing_if = "Option::is_none")]
27 pub user_name: Option<String>,
28}
29
30impl TranscriptPlan {
31 pub fn new() -> TranscriptPlan {
32 TranscriptPlan {
33 enabled: None,
34 assistant_name: None,
35 user_name: None,
36 }
37 }
38}