---
title: evaluationTarget
framework: evaluations
role: symbol
role_heading: Instance Property
path: evaluations/modeljudgeprompt/evaluationtarget
---

# evaluationTarget

An optional closure that converts the model’s response to a string for the judge prompt.

## Declaration

```swift
let evaluationTarget: (@Sendable (Input.ExpectedValue) -> String)?
```

## Discussion

Discussion When nil, the evaluator JSON-serializes the response automatically.

## See Also

### Customizing judge input

- [instructions](evaluations/modeljudgeprompt/instructions.md)
- [reference](evaluations/modeljudgeprompt/reference.md)
