<!--
{
  "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/Response",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV8ResponseV"
  },
  "title" : "Transcript.Response"
}
-->

# Transcript.Response

A response from the model.

```
struct Response
```

## Topics

### Creating a response

[`init(id: String, assetIDs: [String], segments: [Transcript.Segment])`](/documentation/FoundationModels/Transcript/Response/init(id:assetIDs:segments:))

Creates a response that contains the segments you provide.

[`init(id: String, metadata: [String : any ConvertibleToGeneratedContent], segments: [Transcript.Segment])`](/documentation/FoundationModels/Transcript/Response/init(id:metadata:segments:))

Creates a response that contains the metadata and segments you provide.

### Inspecting a response

[`var segments: [Transcript.Segment]`](/documentation/FoundationModels/Transcript/Response/segments)

Ordered response segments.

[`var assetIDs: [String]`](/documentation/FoundationModels/Transcript/Response/assetIDs)

Version-aware identifiers for all assets used to generate this response.

[`var metadata: [String : GeneratedContent]`](/documentation/FoundationModels/Transcript/Response/metadata)

Metadata associated with generating the response.

## Relationships

### Conforms To

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

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

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

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

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

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