One Logo Pool Ball
FoundationModels · IOS API REFERENCE

PrivateCloudComputeLanguageModel.Error.QuotaLimitReached

struct · iOS 27.0+ · SDK 27.1

struct QuotaLimitReached

Information about reaching a usage limit. A ``PrivateCloudComputeLanguageModel`` provides a ``LanguageModelError`` that you use to proactively respond to usage quota scenarios, like when a person is approaching their per-day request limit. When a person approaches or exceeds the daily quota, the framework provides a direct path for you to add system UI so the person can subscribe to iCloud+ to get more access. For more information about quota limits, see "Handle usage limits from using PCC" in <doc:adding-server-side-intelligence-with-private-cloud-compute>.

Members (7)

get · iOS 27.0+

debugDescription

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

A debug description of the usage limit.

set · iOS 27.0+

debugDescription

TypeScript
set debugDescription(value: string)
Swift declaration
var debugDescription: String

A debug description of the usage limit.

init · iOS 27.0+

init

TypeScript
static init(limitIncreaseSuggestion: (PrivateCloudComputeLanguageModel_QuotaUsage_LimitIncreaseSuggestion) | null, resetDate: (globalThis.Date) | null, debugDescription: string): PrivateCloudComputeLanguageModel_Error_QuotaLimitReached
Swift declaration
init(limitIncreaseSuggestion: PrivateCloudComputeLanguageModel.QuotaUsage.LimitIncreaseSuggestion? = nil, resetDate: Date? = nil, debugDescription: String)

Creates a quota limit reached instance. - Parameters: - limitIncreaseSuggestion: The suggestion to increase the usage limit, if one exists. - resetDate: The date that the usage limit resets. - debugDescription: The debug description of the usage limit.

get · iOS 27.0+

limitIncreaseSuggestion

TypeScript
get limitIncreaseSuggestion(): (PrivateCloudComputeLanguageModel_QuotaUsage_LimitIncreaseSuggestion) | null
Swift declaration
var limitIncreaseSuggestion: PrivateCloudComputeLanguageModel.QuotaUsage.LimitIncreaseSuggestion?

A suggestion to increase the usage limit, if one exists.

set · iOS 27.0+

limitIncreaseSuggestion

TypeScript
set limitIncreaseSuggestion(value: (PrivateCloudComputeLanguageModel_QuotaUsage_LimitIncreaseSuggestion) | null)
Swift declaration
var limitIncreaseSuggestion: PrivateCloudComputeLanguageModel.QuotaUsage.LimitIncreaseSuggestion?

A suggestion to increase the usage limit, if one exists.

get · iOS 27.0+

resetDate

TypeScript
get resetDate(): (globalThis.Date) | null
Swift declaration
var resetDate: Date?

The date that the usage limit resets.

set · iOS 27.0+

resetDate

TypeScript
set resetDate(value: (globalThis.Date) | null)
Swift declaration
var resetDate: Date?

The date that the usage limit resets.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →