openai_struct/models/eval_python_grader.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub EvalPythonGrader : A PythonGrader object that runs a python script on the input.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct EvalPythonGrader {
18 /// The image tag to use for the python script.
19 #[serde(rename = "image_tag")]
20 pub image_tag: Option<String>,
21 /// The name of the grader.
22 #[serde(rename = "name")]
23 pub name: String,
24 /// The threshold for the score.
25 #[serde(rename = "pass_threshold")]
26 pub pass_threshold: Option<f32>,
27 /// The source code of the python script.
28 #[serde(rename = "source")]
29 pub source: String,
30 /// The object type, which is always `python`.
31 #[serde(rename = "type")]
32 pub _type: String,
33}