---
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/toolcallevaluator/metrics(subject:input:)"
---

# metrics(subject:input:)

Evaluates tool-call expectations against the actual transcript and returns scored metrics.

## Declaration

```swift
nonisolated(nonsending) func metrics(subject: ModelSubject<Input.ExpectedValue>, input: Input) async throws -> [Metric]
```

## Parameters

- `subject`: The model subject that contains the transcript of actual tool calls.
- `input`: The sample providing the expected tool call trajectory.

## Return Value

Return Value An array that contains the strict pass or fail metric and the partial score metric.

## Discussion

Discussion Runs ordered, unordered, and disallowed expectation checks in a single pass and returns both a strict all-pass metric and a partial percentage-pass metric.
