---
title: DataEntryRepresentable
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/dataentryrepresentable
---

# DataEntryRepresentable

A type that a model can produce and represent as a top-level transcript entry.

## Declaration

```swift
protocol DataEntryRepresentable : Sendable
```

## Overview

Overview Conform to this protocol to describe how a value serializes into — and deserializes back from — a Transcript.DataEntry. transcriptRepresentation is non-throwing: any fallible encoding should be surfaced from the conformer’s own initializer, where the developer is already deciding what input to accept. init(_:) is throwing because the wire representation may come from a persisted transcript, from over the network, or from any source the conformer doesn’t control, and could be malformed. The asymmetry mirrors Foundation’s String.init(data:encoding:) (failable) and String.utf8 (total).

## Topics

### Initializers

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

### Instance Properties

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

## Relationships

### Inherits From

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