data(entryID:action:)
A data-entry event addressed to a transcript entry.
Declaration
static func data(entryID: String? = nil, action: LanguageModelExecutorGenerationChannel.DataEntry.Action) -> LanguageModelExecutorGenerationChannel.EventParameters
- entryID:
The identifier for the data entry to upsert. Pass
nilto have the framework assign a fresh id. - action:
The operation to perform on the data entry.
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(_:).