---
title: "data(entryID:action:)"
framework: Foundation Models
role: symbol
role_heading: Type Method
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, visionOS 27.2+, watchOS 27.2+]
path: "foundationmodels/languagemodelexecutorgenerationchannel/event/data(entryid:action:)"
---

# data(entryID:action:)

A data-entry event addressed to a transcript entry.

## Declaration

```swift
static func data(entryID: String? = nil, action: LanguageModelExecutorGenerationChannel.DataEntry.Action) -> LanguageModelExecutorGenerationChannel.Event
```

## Parameters

- `entryID`: The identifier for the data entry to upsert. Pass nil to have the framework assign a fresh id.
- `action`: The operation to perform on the data entry.

## Discussion

Discussion The entry’s contentType (from update(contentType:content:metadata:)) is checked against supportsDataEntryType(_:) before the entry is appended, and rejected entries surface as LanguageModelError.unsupportedTranscriptContent(_:).
