Skip to main content

QuotaSubject

@forge/monorepo


@forge/monorepo / backend/src / QuotaSubject

Type Alias: QuotaSubject

QuotaSubject = object

Defined in: backend/src/usage/quota.ts:261

What is being admitted, beyond who is asking — #182.

The model belongs here rather than on ExecutionContext: the context is who and where, and a per-model limit is about what this run will use. Two runs by the same person in the same workspace can be subject to different limits, which is not something an identity can express.

Absent modelId means model-scoped limits do not apply. That is the safe direction for a check — it cannot refuse the wrong work — and the caller that knows the model is the one that must say so.

Properties

at?

readonly optional at?: string

Defined in: backend/src/usage/quota.ts:262


modelId?

readonly optional modelId?: string

Defined in: backend/src/usage/quota.ts:263