---
title: "metrics(subject:input:)"
framework: Evaluations
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+, watchOS 27.0+, xcode 27.0+]
path: "evaluations/evaluator/metrics(subject:input:)"
---

# metrics(subject:input:)

Evaluates the input and returns an array of metrics.

## Declaration

```swift
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

Return Value An array that contains the Metric the evaluation closure produces.
