quotaUsage
TypeScriptget quotaUsage(): PrivateCloudComputeLanguageModel_QuotaUsageSwift declarationfinal var quotaUsage: PrivateCloudComputeLanguageModel.QuotaUsage { get }The usage quota for this model.
class · iOS 27.0+ · SDK 27.1
final class PrivateCloudComputeLanguageModelA variant of Apple Foundation Models that runs on Private Cloud Compute to provide enhanced capabilities while maintaining privacy guarantees. To use the server-based model that powers Apple Intelligence, you change a single line of code that you apply when creating your ``LanguageModelSession``. ```swift // Create a session with the server-side model. let session = LanguageModelSession(model: PrivateCloudComputeLanguageModel()) let response = try await session.respond(to: "Analyze this document...") ``` Before using the model, verify its availability. Model availability depends on whether the device and region supports Apple Intelligence. For a list of supported devices, see [Apple Intelligence](https://www.apple.com/apple-intelligence/). > Important: To develop with PCC you must meet certain eligibility requirements. To learn more and request access to the managed entitlement, see [Accessing Private Cloud Compute](https://developer.apple.com/private-cloud-compute/).
get quotaUsage(): PrivateCloudComputeLanguageModel_QuotaUsageSwift declarationfinal var quotaUsage: PrivateCloudComputeLanguageModel.QuotaUsage { get }The usage quota for this model.
get contextSize(): Promise<number>Swift declarationnonisolated(nonsending) final var contextSize: Int { get async throws }The maximum context size in tokens supported by the model. The context size represents the total number of tokens that can be used in a single session, including both input prompts and generated responses.
get isAvailable(): booleanSwift declarationfinal var isAvailable: Bool { get }A Boolean value that indicates whether the system is entirely ready.
get availability(): PrivateCloudComputeLanguageModel_AvailabilitySwift declarationfinal var availability: PrivateCloudComputeLanguageModel.Availability { get }The availability of the language model.
get capabilities(): LanguageModelCapabilitiesSwift declarationfinal var capabilities: LanguageModelCapabilities { get }The capabilities of this language model. If a developer attempts to use capabilities that your model does not support, the system automatically throws an error for you instead of calling a respond method, like ``LanguageModelSession/respond(to:options:)-(Prompt,_)`` or ``LanguageModelSession/streamResponse(to:options:)-(Prompt,_)``.
supportsLocale(locale?: _Foundation_Locale): Promise<boolean>Swift declarationnonisolated(nonsending) final func supportsLocale(_ locale: Locale = Locale.current) async throws -> BoolReturns a Boolean value that indicates whether the given locale is supported by the model. Use this method over ``supportedLanguages`` to check whether the given locale qualifies a person for using this model, as this method also takes language fallbacks into consideration.
get supportedLanguages(): Promise<Array<_Foundation_Locale_Language>>Swift declarationnonisolated(nonsending) final var supportedLanguages: Set<Locale.Language> { get async throws }Languages that the model supports. To check if a given locale is considered supported by the model, use ``supportsLocale(_:)``, which also takes language fallbacks into consideration.
get executorConfiguration(): PrivateCloudComputeLanguageModel_Executor_ConfigurationSwift declarationfinal var executorConfiguration: PrivateCloudComputeLanguageModel.Executor.Configuration { get }A configuration for an executor capable of running this model.
static init(): PrivateCloudComputeLanguageModelSwift declarationconvenience init()Creates a Private Cloud Compute language model instance.
No declarations were skipped in this snapshot.