<!--
{
  "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/ContextOptions/init(includeSchemaInPrompt:reasoningLevel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels14ContextOptionsV21includeSchemaInPrompt14reasoningLevelACSbSg_AC09ReasoningJ0OSgtcfc"
  },
  "title" : "init(includeSchemaInPrompt:reasoningLevel:)"
}
-->

# init(includeSchemaInPrompt:reasoningLevel:)

Creates options that control how the model is prompted.

```
init(includeSchemaInPrompt: Bool? = nil, reasoningLevel: ContextOptions.ReasoningLevel? = nil)
```

## Parameters

`includeSchemaInPrompt`

If `true`, injects the schema into the prompt to bias the model.

`reasoningLevel`

Controls the amount of reasoning that the model is allowed to output before producing a response

---

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)