---
title: DataAttachmentRepresentable
framework: Foundation Models
role: symbol
role_heading: Protocol
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, visionOS 27.2+, watchOS 27.2+]
path: foundationmodels/dataattachmentrepresentable
---

# DataAttachmentRepresentable

A type that you use as the content of a data attachment.

## Declaration

```swift
protocol DataAttachmentRepresentable : Sendable
```

## Overview

Overview Conform to this protocol to describe how a value serializes into — and deserializes back from — a Transcript.DataAttachment. The serialized form is a portable Data blob identified by a content type identifier, which is what gets persisted when a Transcript is encoded, so a transcript remains readable even in environments where the declaring package isn’t installed. A LanguageModel advertises which content types it accepts through supportsDataAttachmentType(_:); the framework validates each data attachment’s contentType against that predicate before dispatching to the executor.

## Topics

### Initializers

- [init(_:)](foundationmodels/dataattachmentrepresentable/init(_:).md)

### Instance Properties

- [transcriptRepresentation](foundationmodels/dataattachmentrepresentable/transcriptrepresentation.md)

## Relationships

### Inherits From

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
