Contents

Transcript.DataAttachment

A data attachment payload in a serialized, portable format.

Declaration

struct DataAttachment

Overview

A Transcript.DataAttachment records the bytes and identifier of a value that a LanguageModel implementation opted into via supportsDataAttachmentType(_:). It’s what a DataAttachmentRepresentable-conforming type produces from its transcriptRepresentation, and it round-trips through the transcript’s Codable conformance so the transcript remains portable even in environments where the declaring package isn’t installed.

Topics

Initializers

Instance Properties