vapi_client/models/
test_suite_test_scorer_ai.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 TestSuiteTestScorerAi {
16    /// This is the type of the scorer, which must be AI.
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    /// This is the rubric used by the AI scorer.
20    #[serde(rename = "rubric")]
21    pub rubric: String,
22}
23
24impl TestSuiteTestScorerAi {
25    pub fn new(r#type: Type, rubric: String) -> TestSuiteTestScorerAi {
26        TestSuiteTestScorerAi {
27            r#type,
28            rubric,
29        }
30    }
31}
32/// This is the type of the scorer, which must be AI.
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "ai")]
36    Ai,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::Ai
42    }
43}
44