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: u64,
pub report_url: String,
pub result_counts: EvalRunResultCounts,
pub per_model_usage: Vec<EvalRunPerModelUsage>,
pub per_testing_criteria_results: Vec<EvalRunPerTestingCriteriaResult>,
pub data_source: EvalRunDataSource,
pub metadata: Option<Metadata>,
pub error: EvalApiError,
}
Expand description
A schema representing an evaluation run.
Fields§
§id: String
Unique identifier for the evaluation run.
eval_id: String
The identifier of the associated evaluation.
status: String
The status of the evaluation run.
model: String
The model that is evaluated, if applicable.
name: String
The name of the evaluation run.
created_at: u64
Unix timestamp (in seconds) when the evaluation run was created.
report_url: String
The URL to the rendered evaluation run report on the UI dashboard.
result_counts: EvalRunResultCounts
Counters summarizing the outcomes of the evaluation run.
per_model_usage: Vec<EvalRunPerModelUsage>
Usage statistics for each model during the evaluation run.
per_testing_criteria_results: Vec<EvalRunPerTestingCriteriaResult>
Results per testing criteria applied during the evaluation run.
data_source: EvalRunDataSource
Information about the run’s data source.
metadata: Option<Metadata>
§error: EvalApiError
Implementations§
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
.