DataAttachmentRepresentable
A type that you use as the content of a data attachment.
Declaration
protocol DataAttachmentRepresentable : SendableOverview
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.