Skip to main content

hanzo_client/models/
run_record.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
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 RunRecord {
16    /// AvgScore is the mean over the scored examples.
17    #[serde(rename = "avgScore", skip_serializing_if = "Option::is_none")]
18    pub avg_score: Option<f64>,
19    /// CreatedAt is when the run first landed.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<String>,
22    /// Dataset is the set that was scored.
23    #[serde(rename = "dataset", skip_serializing_if = "Option::is_none")]
24    pub dataset: Option<String>,
25    /// Items is how many examples were attempted.
26    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
27    pub items: Option<i32>,
28    /// JudgeModel is the model that graded.
29    #[serde(rename = "judgeModel", skip_serializing_if = "Option::is_none")]
30    pub judge_model: Option<String>,
31    /// Model is the model under test.
32    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
33    pub model: Option<String>,
34    /// RunName is the run's label.
35    #[serde(rename = "runName", skip_serializing_if = "Option::is_none")]
36    pub run_name: Option<String>,
37    /// Scored is how many produced a real score.
38    #[serde(rename = "scored", skip_serializing_if = "Option::is_none")]
39    pub scored: Option<i32>,
40    /// UpdatedAt is when the record last changed.
41    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
42    pub updated_at: Option<String>,
43}
44
45impl RunRecord {
46    pub fn new() -> RunRecord {
47        RunRecord {
48            avg_score: None,
49            created_at: None,
50            dataset: None,
51            items: None,
52            judge_model: None,
53            model: None,
54            run_name: None,
55            scored: None,
56            updated_at: None,
57        }
58    }
59}
60