Metric constructor

Metric({
  1. PredefinedMetricSpec? predefinedMetricSpec,
  2. ComputationBasedMetricSpec? computationBasedMetricSpec,
  3. LlmbasedMetricSpec? llmBasedMetricSpec,
  4. CustomCodeExecutionSpec? customCodeExecutionSpec,
  5. PointwiseMetricSpec? pointwiseMetricSpec,
  6. PairwiseMetricSpec? pairwiseMetricSpec,
  7. ExactMatchSpec? exactMatchSpec,
  8. BleuSpec? bleuSpec,
  9. RougeSpec? rougeSpec,
  10. List<Metric_AggregationMetric> aggregationMetrics = const [],
  11. MetricMetadata? metadata,
})

Implementation

Metric({
  this.predefinedMetricSpec,
  this.computationBasedMetricSpec,
  this.llmBasedMetricSpec,
  this.customCodeExecutionSpec,
  this.pointwiseMetricSpec,
  this.pairwiseMetricSpec,
  this.exactMatchSpec,
  this.bleuSpec,
  this.rougeSpec,
  this.aggregationMetrics = const [],
  this.metadata,
}) : super(fullyQualifiedName);