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

# Transcript.DataEntry

A top-level transcript entry payload in a serialized, portable format.

```
struct DataEntry
```

## Overview

A [`Transcript.DataEntry`](/documentation/FoundationModels/Transcript/DataEntry) records the bytes and identifier of a value that a
[`LanguageModel`](/documentation/FoundationModels/LanguageModel) implementation opted into via
[`supportsDataEntryType(_:)`](/documentation/FoundationModels/LanguageModel/supportsDataEntryType(_:)). It’s what a
[`DataEntryRepresentable`](/documentation/FoundationModels/DataEntryRepresentable)-conforming type produces from its
[`transcriptRepresentation`](/documentation/FoundationModels/DataEntryRepresentable/transcriptRepresentation), and it
round-trips through the transcript’s `Codable` conformance so the
transcript remains portable even in environments where the declaring
package isn’t installed.

## Topics

### Initializers

[`init(id: String, contentType: UTType, content: Data, metadata: GeneratedContent)`](/documentation/FoundationModels/Transcript/DataEntry/init(id:contentType:content:metadata:))

Creates a data entry with the content type, content, and metadata
you provide.

### Instance Properties

[`var content: Data`](/documentation/FoundationModels/Transcript/DataEntry/content)

A raw binary representation of the entry.

[`var contentType: UTType`](/documentation/FoundationModels/Transcript/DataEntry/contentType)

A `UTType` identifying how to interpret [`content`](/documentation/FoundationModels/Transcript/DataEntry/content).

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

Metadata pertinent to this entry.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)