One Logo Pool Ball
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

TypeScript
static init(contextSize: number, tokenCount: number, debugDescription: string, metadata?: Record<string, SDKHandle>): LanguageModelError_ContextSizeExceeded
Swift declaration
init(contextSize: Int, tokenCount: Int, debugDescription: String, metadata: [String : any Sendable] = [:])
get · iOS 27.0+

contextSize

TypeScript
get contextSize(): number
Swift declaration
var contextSize: Int
set · iOS 27.0+

contextSize

TypeScript
set contextSize(value: number)
Swift declaration
var contextSize: Int
get · iOS 27.0+

tokenCount

TypeScript
get tokenCount(): number
Swift declaration
var tokenCount: Int
set · iOS 27.0+

tokenCount

TypeScript
set tokenCount(value: number)
Swift declaration
var tokenCount: Int
get · iOS 27.0+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
var debugDescription: String
set · iOS 27.0+

debugDescription

TypeScript
set debugDescription(value: string)
Swift declaration
var debugDescription: String
get · iOS 27.0+

metadata

TypeScript
get metadata(): Record<string, SDKHandle>
Swift declaration
var metadata: [String : any Sendable]
set · iOS 27.0+

metadata

TypeScript
set metadata(value: Record<string, SDKHandle>)
Swift declaration
var metadata: [String : any Sendable]

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →