metrics(subject:input:)
Evaluates the input and returns an array of metrics.
Declaration
nonisolated(nonsending) func metrics(subject: ModelSubject<Input.ExpectedValue>, input: Input) async throws -> [Metric]Parameters
- subject:
The model subject that provides the value and transcript to evaluate.
- input:
The sample input that contains the prompt and expected value.
Return Value
An array that contains the Metric the evaluation closure produces.