pub struct EvalRun {Show 13 fields
pub id: String,
pub eval_id: String,
pub status: String,
pub model: String,
pub name: String,
pub created_at: i64,
pub report_url: String,
pub result_counts: ResultCounts,
pub per_model_usage: Vec<Item>,
pub per_testing_criteria_results: Vec<Item>,
pub data_source: DataSource,
pub metadata: Option<Metadata>,
pub error: EvalApiError,
}Expand description
A schema representing an evaluation run.
Fields§
§id: StringUnique identifier for the evaluation run.
eval_id: StringThe identifier of the associated evaluation.
status: StringThe status of the evaluation run.
model: StringThe model that is evaluated, if applicable.
name: StringThe name of the evaluation run.
created_at: i64Unix timestamp (in seconds) when the evaluation run was created.
report_url: StringThe URL to the rendered evaluation run report on the UI dashboard.
result_counts: ResultCountsCounters summarizing the outcomes of the evaluation run.
per_model_usage: Vec<Item>Usage statistics for each model during the evaluation run.
per_testing_criteria_results: Vec<Item>Results per testing criteria applied during the evaluation run.
data_source: DataSourceInformation about the run’s data source.
metadata: Option<Metadata>§error: EvalApiErrorImplementations§
Source§impl EvalRun
impl EvalRun
Sourcepub fn builder() -> EvalRunBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> EvalRunBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building EvalRun.
On the builder, call .id(...), .eval_id(...), .status(...), .model(...), .name(...), .created_at(...), .report_url(...), .result_counts(...), .per_model_usage(...), .per_testing_criteria_results(...), .data_source(...), .metadata(...)(optional), .error(...) to set the values of the fields.
Finally, call .build() to create the instance of EvalRun.