---
title: ModelSampleInput
framework: evaluations
role: symbol
role_heading: Structure
path: evaluations/modelsampleinput
---

# ModelSampleInput

The data sent to a language model for evaluation.

## Declaration

```swift
struct ModelSampleInput
```

## Overview

Overview Stores FoundationModels types (Prompt, Instructions) and automatically synthesizes text representations for display, logging, and synthetic data.

## Topics

### Initializers

- [init(prompt:instructions:generationSchema:)](evaluations/modelsampleinput/init(prompt:instructions:generationschema:).md)

### Instance Properties

- [generationSchema](evaluations/modelsampleinput/generationschema.md)
- [instructions](evaluations/modelsampleinput/instructions.md)
- [instructionsDescription](evaluations/modelsampleinput/instructionsdescription.md)
- [prompt](evaluations/modelsampleinput/prompt.md)
- [promptDescription](evaluations/modelsampleinput/promptdescription.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Bundled input and output

- [ModelSampleOutput](evaluations/modelsampleoutput.md)
