<!--
{
  "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/LanguageModelSession/init(model:dynamicInstructions:history:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels20LanguageModelSessionC5model19dynamicInstructions7historyACx_q_nq0_tcAA0cD0RzAA07DynamicH0R_SlR0_AA10TranscriptV5EntryO7ElementRt0_r1_lufc"
  },
  "title" : "init(model:dynamicInstructions:history:)"
}
-->

# init(model:dynamicInstructions:history:)

Creates a session with dynamic instructions.

iOS, iPadOS, Mac Catalyst, macOS, visionOS:

```
convenience init(model: some LanguageModel = SystemLanguageModel.default, dynamicInstructions: sending some DynamicInstructions, history: some Collection<Transcript.Entry> = [])
```

watchOS:

```
convenience init(model: some LanguageModel, dynamicInstructions: sending some DynamicInstructions, history: some Collection<Transcript.Entry> = [])
```

## Parameters

`dynamicInstructions`

The instructions to use for this session.

`history`

Transcript entries without the initial instructions, since that’s defined by the profile.

---

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)