<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/Transcript/ResponseFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV14ResponseFormatV"
  },
  "title" : "Transcript.ResponseFormat"
}
-->

# Transcript.ResponseFormat

A response format that the model must conform its output to.

```
struct ResponseFormat
```

## Topics

### Creating a response format

[`init(schema: GenerationSchema)`](/documentation/FoundationModels/Transcript/ResponseFormat/init(schema:))

Creates a response format with a schema.

[`init<Content>(type: Content.Type)`](/documentation/FoundationModels/Transcript/ResponseFormat/init(type:))

Creates a response format with type you specify.

### Inspecting the name

[`var name: String`](/documentation/FoundationModels/Transcript/ResponseFormat/name)

A name associated with the response format.

### Accessing the kind of format

[`let kind: Transcript.ResponseFormat.Kind`](/documentation/FoundationModels/Transcript/ResponseFormat/kind-swift.property)

The way the response format constrains the model’s output.

[`enum Kind`](/documentation/FoundationModels/Transcript/ResponseFormat/Kind-swift.enum)

A representation of the different ways a response format can constrain model output.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)