vapi_client/models/tester_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 TesterPlan {
16 /// Pass a transient assistant to use for the test assistant. Make sure to write a detailed system prompt for a test assistant, and use the {{test.script}} variable to access the test script.
17 #[serde(rename = "assistant", skip_serializing_if = "Option::is_none")]
18 pub assistant: Option<models::CreateAssistantDto>,
19 /// Pass an assistant id that can be access Make sure to write a detailed system prompt for the test assistant, and use the {{test.script}} variable to access the test script.
20 #[serde(rename = "assistantId", skip_serializing_if = "Option::is_none")]
21 pub assistant_id: Option<String>,
22 /// Add any assistant overrides to the test assistant. One use case is if you want to pass custom variables into the test using variableValues, that you can then access in the script and rubric using {{varName}}.
23 #[serde(rename = "assistantOverrides", skip_serializing_if = "Option::is_none")]
24 pub assistant_overrides: Option<models::AssistantOverrides>,
25}
26
27impl TesterPlan {
28 pub fn new() -> TesterPlan {
29 TesterPlan {
30 assistant: None,
31 assistant_id: None,
32 assistant_overrides: None,
33 }
34 }
35}