---
title: Transcript.Segment
framework: foundationmodels
role: symbol
role_heading: Enumeration
path: foundationmodels/transcript/segment
---

# Transcript.Segment

The types of segments that may be included in a transcript entry.

## Declaration

```swift
enum Segment
```

## Topics

### Segment cases

- [Transcript.Segment.text(_:)](foundationmodels/transcript/segment/text(_:).md)
- [Transcript.Segment.attachment(_:)](foundationmodels/transcript/segment/attachment(_:).md)
- [Transcript.Segment.structure(_:)](foundationmodels/transcript/segment/structure(_:).md)
- [Transcript.Segment.custom(_:)](foundationmodels/transcript/segment/custom(_:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a transcript

- [init(entries:)](foundationmodels/transcript/init(entries:).md)
- [Transcript.Entry](foundationmodels/transcript/entry.md)
- [Transcript.Attachment](foundationmodels/transcript/attachment.md)
