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

# Transcript.StructuredSegment

A segment containing structured content.

```
struct StructuredSegment
```

## Topics

### Creating a structured segment

[`init(id: String, source: String, content: GeneratedContent)`](/documentation/FoundationModels/Transcript/StructuredSegment/init(id:source:content:))

[`init(id: String, schemaName: String, content: GeneratedContent)`](/documentation/FoundationModels/Transcript/StructuredSegment/init(id:schemaName:content:))

Creates a structured segment that contains the generated content you provide.

### Inspecting a structured segment

[`var content: GeneratedContent`](/documentation/FoundationModels/Transcript/StructuredSegment/content)

The content of the segment.

[`var source: String`](/documentation/FoundationModels/Transcript/StructuredSegment/source)

A source that can be used to understand which type the content represents.

[`var schemaName: String`](/documentation/FoundationModels/Transcript/StructuredSegment/schemaName)

A name that can be used to understand which type the content represents.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)