FoundationModels · IOS API REFERENCE
LanguageModelError.ContextSizeExceeded
struct · iOS 27.0+ · SDK 27.1
struct ContextSizeExceeded
Information about exceeding the context window size.
Members (9)
init · iOS 27.0+init
TypeScriptstatic init(contextSize: number, tokenCount: number, debugDescription: string, metadata?: Record<string, SDKHandle>): LanguageModelError_ContextSizeExceeded
Swift declarationinit(contextSize: Int, tokenCount: Int, debugDescription: String, metadata: [String : any Sendable] = [:])
get · iOS 27.0+contextSize
TypeScriptget contextSize(): number
Swift declarationvar contextSize: Int
set · iOS 27.0+contextSize
TypeScriptset contextSize(value: number)
Swift declarationvar contextSize: Int
get · iOS 27.0+tokenCount
TypeScriptget tokenCount(): number
Swift declarationvar tokenCount: Int
set · iOS 27.0+tokenCount
TypeScriptset tokenCount(value: number)
Swift declarationvar tokenCount: Int
get · iOS 27.0+debugDescription
TypeScriptget debugDescription(): string
Swift declarationvar debugDescription: String
set · iOS 27.0+debugDescription
TypeScriptset debugDescription(value: string)
Swift declarationvar debugDescription: String
get · iOS 27.0+metadata
TypeScriptget metadata(): Record<string, SDKHandle>
Swift declarationvar metadata: [String : any Sendable]
set · iOS 27.0+metadata
TypeScriptset metadata(value: Record<string, SDKHandle>)
Swift declarationvar metadata: [String : any Sendable]
Skipped declarations
No declarations were skipped in this snapshot.
All FoundationModels types →