---
title: "init(id:segments:toolDefinitions:)"
framework: foundationmodels
role: symbol
role_heading: Initializer
path: "foundationmodels/transcript/instructions/init(id:segments:tooldefinitions:)"
---

# init(id:segments:toolDefinitions:)

Initialize instructions by describing how you want the model to behave using natural language.

## Declaration

```swift
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.
