<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/Transcript/AttachmentSegment",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV17AttachmentSegmentV"
  },
  "title" : "Transcript.AttachmentSegment"
}
-->

# Transcript.AttachmentSegment

A segment containing attached files or images.

```
struct AttachmentSegment
```

## Topics

### Creating an attachment segment

[`init(id: String, content: Transcript.Attachment, label: String?)`](/documentation/FoundationModels/Transcript/AttachmentSegment/init(id:content:label:))

Creates an attachment segment that wraps the content you provide.

### Inspecting an attachment segment

[`var content: Transcript.Attachment`](/documentation/FoundationModels/Transcript/AttachmentSegment/content)

The attached file or image.

[`var label: String?`](/documentation/FoundationModels/Transcript/AttachmentSegment/label)

An optional label that identifies the attachment.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)