1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RunSummary {
/// AvgScore is the mean over the scored examples, 0 when none scored.
#[serde(rename = "avgScore", skip_serializing_if = "Option::is_none")]
pub avg_score: Option<f64>,
/// Dataset is the set that was scored.
#[serde(rename = "dataset", skip_serializing_if = "Option::is_none")]
pub dataset: Option<String>,
/// Items is how many examples the run attempted.
#[serde(rename = "items", skip_serializing_if = "Option::is_none")]
pub items: Option<i32>,
/// JudgeModel is the model that graded.
#[serde(rename = "judgeModel", skip_serializing_if = "Option::is_none")]
pub judge_model: Option<String>,
/// Model is the model under test.
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
pub model: Option<String>,
/// Results is one row per attempted example.
#[serde(rename = "results", skip_serializing_if = "Option::is_none")]
pub results: Option<Vec<models::ItemResult>>,
/// RunName is the run's label, which scores and traces are filed under.
#[serde(rename = "runName", skip_serializing_if = "Option::is_none")]
pub run_name: Option<String>,
/// Scored is how many produced a real score. It counts successes only, so a partial run is honest about what it achieved.
#[serde(rename = "scored", skip_serializing_if = "Option::is_none")]
pub scored: Option<i32>,
}
impl RunSummary {
pub fn new() -> RunSummary {
RunSummary {
avg_score: None,
dataset: None,
items: None,
judge_model: None,
model: None,
results: None,
run_name: None,
scored: None,
}
}
}