<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Evaluations",
  "identifier" : "/documentation/Evaluations/ScoringMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations11ScoringModeO"
  },
  "title" : "ScoringMode"
}
-->

# ScoringMode

The scoring constraint mode for a model evaluator.

```
enum ScoringMode
```

## Overview

```swift
let mode: ScoringMode = .discrete
```

The mode controls whether the model judge can return any floating-point score,
or structured generation constrains it to return exactly one of the scale values that the dimension defines.

## Topics

### Enumeration Cases

[`case continuous`](/documentation/Evaluations/ScoringMode/continuous)

A mode that allows the model to return any floating-point value. The scale serves as a guide
but is not enforced at the generation level.

[`case discrete`](/documentation/Evaluations/ScoringMode/discrete)

A mode that requires the model to return exactly one of the values defined in the
scoring dimension’s scale, enforced using structured generation.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)