One Logo Pool Ball
FoundationModels · IOS API REFERENCE

LanguageModelSession.GenerationError.Context

struct · iOS 26.0+ · SDK 27.1

struct Context

The context in which the error occurred.

Members (2)

init · iOS 26.0+

init

TypeScript
static init(debugDescription: string): LanguageModelSession_GenerationError_Context
Swift declaration
init(debugDescription: String)

Creates a context. - Parameters: - debugDescription: The debug description to help developers diagnose issues during development.

get · iOS 26.0+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
let debugDescription: String

A debug description to help developers diagnose issues during development. This string is not localized and is not appropriate for display to end users.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →