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
/*
* 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 RunRequest {
/// Dataset is the set to score, which must belong to the caller's org and hold at least one ACTIVE example.
#[serde(rename = "dataset")]
pub dataset: String,
/// Judge is the judge to grade with. Omitted, the model under test grades itself against a default correctness criterion under the score name \"llm-judge\".
#[serde(rename = "judge", skip_serializing_if = "Option::is_none")]
pub judge: Option<Box<models::JudgeSpec>>,
/// Limit caps how many examples this run scores. It defaults to 20, and anything above 100 falls back to that default.
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
pub limit: Option<i32>,
/// Model is the model under test.
#[serde(rename = "model")]
pub model: String,
/// RunName labels the run and is generated from the clock when omitted. It must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$.
#[serde(rename = "runName", skip_serializing_if = "Option::is_none")]
pub run_name: Option<String>,
}
impl RunRequest {
pub fn new(dataset: String, model: String) -> RunRequest {
RunRequest {
dataset,
judge: None,
limit: None,
model,
run_name: None,
}
}
}