vapi_client/models/
test_suite_run_test_attempt.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 TestSuiteRunTestAttempt {
19    /// These are the results of the scorers used to evaluate the test attempt.
20    #[serde(rename = "scorerResults")]
21    pub scorer_results: Vec<models::TestSuiteRunTestAttemptScorerResultsInner>,
22    /// This is the call made during the test attempt.
23    #[serde(rename = "call")]
24    pub call: models::TestSuiteRunTestAttemptCall,
25}
26
27impl TestSuiteRunTestAttempt {
28    pub fn new(
29        scorer_results: Vec<models::TestSuiteRunTestAttemptScorerResultsInner>,
30        call: models::TestSuiteRunTestAttemptCall,
31    ) -> TestSuiteRunTestAttempt {
32        TestSuiteRunTestAttempt {
33            scorer_results,
34            call,
35        }
36    }
37}