---
title: Transcript.CustomSegment
framework: foundationmodels
role: symbol
role_heading: Protocol
path: foundationmodels/transcript/customsegment
---

# Transcript.CustomSegment

A segment whose content is defined by a custom content.

## Declaration

```swift
protocol CustomSegment : InstructionsRepresentable, PromptRepresentable, CustomStringConvertible, Equatable, Identifiable, Sendable
```

## Topics

### Inspecting a custom segment

- [content](foundationmodels/transcript/customsegment/content-swift.property.md)
- [Content](foundationmodels/transcript/customsegment/content-swift.associatedtype.md)
- [id](foundationmodels/transcript/customsegment/id.md)

### Comparing segments

- [isEqual(to:)](foundationmodels/transcript/customsegment/isequal(to:).md)

### Default Implementations

- [CustomStringConvertible Implementations](foundationmodels/transcript/customsegment/customstringconvertible-implementations.md)

## Relationships

### Inherits From

- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Identifiable](swift/identifiable.md)
- [InstructionsRepresentable](foundationmodels/instructionsrepresentable.md)
- [PromptRepresentable](foundationmodels/promptrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constructing content

- [Transcript.TextSegment](foundationmodels/transcript/textsegment.md)
- [Transcript.StructuredSegment](foundationmodels/transcript/structuredsegment.md)
- [Transcript.ResponseFormat](foundationmodels/transcript/responseformat.md)
- [Transcript.ToolDefinition](foundationmodels/transcript/tooldefinition.md)
- [Transcript.AttachmentSegment](foundationmodels/transcript/attachmentsegment.md)
- [Transcript.ImageAttachment](foundationmodels/transcript/imageattachment.md)
- [Transcript.Instructions](foundationmodels/transcript/instructions.md)
- [Transcript.Prompt](foundationmodels/transcript/prompt.md)
- [Transcript.Reasoning](foundationmodels/transcript/reasoning.md)
- [Transcript.Response](foundationmodels/transcript/response.md)
- [Transcript.ToolCall](foundationmodels/transcript/toolcall.md)
- [Transcript.ToolCalls](foundationmodels/transcript/toolcalls.md)
- [Transcript.ToolOutput](foundationmodels/transcript/tooloutput.md)
