<!--
{
  "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/Instructions/init(id:segments:toolDefinitions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV12InstructionsV2id8segments15toolDefinitionsAESS_SayAC7SegmentOGSayAC14ToolDefinitionVGtcfc"
  },
  "title" : "init(id:segments:toolDefinitions:)"
}
-->

# init(id:segments:toolDefinitions:)

Creates instructions that describe how you want the model to behave, in natural language.

```
init(id: String = UUID().uuidString, segments: [Transcript.Segment], toolDefinitions: [Transcript.ToolDefinition])
```

## Parameters

`id`

A unique identifier for this instructions segment.

`segments`

An array of segments that make up the instructions.

`toolDefinitions`

Tools that the model should be allowed to call.

---

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)