<!--
{
  "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/ModelSampleOutput",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations17ModelSampleOutputV"
  },
  "title" : "ModelSampleOutput"
}
-->

# ModelSampleOutput

The expected output value and evaluation expectations for a sample.

```
struct ModelSampleOutput<Value, Expectation> where Value : Decodable, Value : Encodable, Value : Sendable, Expectation : Decodable, Expectation : Encodable, Expectation : Sendable
```

## Topics

### Initializers

[`init(value: Value?, expectations: Expectation?)`](/documentation/Evaluations/ModelSampleOutput/init(value:expectations:))

Creates a model sample output with an optional expected value and expectations.

### Instance Properties

[`var expectations: Expectation?`](/documentation/Evaluations/ModelSampleOutput/expectations)

The expected behavior, for example, tool-call trajectory.

[`var value: Value?`](/documentation/Evaluations/ModelSampleOutput/value)

The expected output value for comparison.

## Relationships

### Conforms To

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

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

[`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)