ReportingConfiguration constructor
ReportingConfiguration(
- Iterable<
Evaluator> evaluators, - EvaluationResultStore resultStore, {
- ChatConfiguration? chatConfiguration,
- EvaluationResponseCacheProvider? responseCacheProvider,
- Iterable<
String> ? cachingKeys, - String? executionName,
- EvaluationMetricInterpretation? evaluationMetricInterpreter()?,
- Iterable<
String> ? tags,
Creates a ReportingConfiguration.
evaluators are the evaluators to run for each scenario.
resultStore persists results.
chatConfiguration is required for AI-based evaluators.
responseCacheProvider enables response caching when non-null.
cachingKeys are extra strings hashed into response cache keys.
executionName uniquely identifies this batch; defaults to "Default".
evaluationMetricInterpreter overrides metric interpretations.
tags are labels applied to every ScenarioRun.
Implementation
ReportingConfiguration(
Iterable<Evaluator> evaluators,
this.resultStore, {
this.chatConfiguration,
this.responseCacheProvider,
Iterable<String>? cachingKeys,
String? executionName,
this.evaluationMetricInterpreter,
Iterable<String>? tags,
}) : evaluators = List.unmodifiable(evaluators),
cachingKeys = List.unmodifiable(cachingKeys ?? []),
executionName = executionName ?? 'Default',
tags = tags != null ? List.unmodifiable(tags) : null;