<!--
{
  "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/StructuredSegment/init(id:schemaName:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV17StructuredSegmentV2id10schemaName7contentAESS_SSAA16GeneratedContentVtcfc"
  },
  "title" : "init(id:schemaName:content:)"
}
-->

# init(id:schemaName:content:)

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

```
init(id: String = UUID().uuidString, schemaName: String, content: GeneratedContent)
```

## Parameters

`id`

A unique identifier for the segment.

`schemaName`

A name that describes which type the content represents.

`content`

The structured content of the segment.

---

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)