hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 JudgeSpec {
    /// Criteria is the standard the judge applies, defaulting to a correctness criterion.
    #[serde(rename = "criteria", skip_serializing_if = "Option::is_none")]
    pub criteria: Option<String>,
    /// Model is the model that grades. It defaults to the model under test, so a run with no judge named has the model grade itself.
    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    /// Name is the score name the judge's grades are filed under, \"llm-judge\" by default. A name that is not a legal handle falls back to that default rather than being stored as sent.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

impl JudgeSpec {
    pub fn new() -> JudgeSpec {
        JudgeSpec {
            criteria: None,
            model: None,
            name: None,
        }
    }
}