Skip to main content

windmill_api/models/
create_eval_dataset_request.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.796.0
7 * Contact: contact@windmill.dev
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 CreateEvalDatasetRequest {
16    #[serde(rename = "path")]
17    pub path: String,
18    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
19    pub summary: Option<String>,
20    #[serde(rename = "scorers", skip_serializing_if = "Option::is_none")]
21    pub scorers: Option<Vec<models::Scorer>>,
22    /// The cases to create the dataset holding, so one can be assembled in a single act rather than created empty and filled in afterwards.
23    #[serde(rename = "cases", skip_serializing_if = "Option::is_none")]
24    pub cases: Option<Vec<models::NewEvalCase>>,
25}
26
27impl CreateEvalDatasetRequest {
28    pub fn new(path: String) -> CreateEvalDatasetRequest {
29        CreateEvalDatasetRequest {
30            path,
31            summary: None,
32            scorers: None,
33            cases: None,
34        }
35    }
36}
37