Options that configure details that should appear in the prompt.
Create a ``ContextOptions`` structure when you need to bias the model's behavior by
adjusting how the model receives your prompt.
Members (5)
get · iOS 27.0+
reasoningLevel
TypeScript
get reasoningLevel(): (ContextOptions_ReasoningLevel) | null
Swift declaration
var reasoningLevel: ContextOptions.ReasoningLevel?
Controls the amount of reasoning that the model is allowed to output before producing a response.
set · iOS 27.0+
reasoningLevel
TypeScript
set reasoningLevel(value: (ContextOptions_ReasoningLevel) | null)
Swift declaration
var reasoningLevel: ContextOptions.ReasoningLevel?
Controls the amount of reasoning that the model is allowed to output before producing a response.
Creates options that control how the model is prompted.
- 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
get · iOS 27.0+
includeSchemaInPrompt
TypeScript
get includeSchemaInPrompt(): (boolean) | null
Swift declaration
var includeSchemaInPrompt: Bool?
A Boolean value that indicates whether to inject the schema into the prompt to bias the model.
Has no effect if there's no schema provided
set · iOS 27.0+
includeSchemaInPrompt
TypeScript
set includeSchemaInPrompt(value: (boolean) | null)
Swift declaration
var includeSchemaInPrompt: Bool?
A Boolean value that indicates whether to inject the schema into the prompt to bias the model.
Has no effect if there's no schema provided