init(contextSize:tokenCount:debugDescription:metadata:)
Creates information describing a transcript that exceeded the model’s context size.
Declaration
init(contextSize: Int, tokenCount: Int, debugDescription: String, metadata: [String : any Sendable] = [:])Parameters
- contextSize:
The model’s maximum context size, in tokens.
- tokenCount:
The number of tokens in the transcript that exceeded the context size.
- debugDescription:
A developer-facing description of the failure.
- metadata:
Additional information about the failure, keyed by name.