ContextInspection
@forge/monorepo / backend/src / ContextInspection
Type Alias: ContextInspection
ContextInspection =
object
Defined in: backend/src/context/assembler.ts:151
Properties
budget
readonlybudget:ContextBudget
Defined in: backend/src/context/assembler.ts:154
modelContextTokens
readonlymodelContextTokens:number
Defined in: backend/src/context/assembler.ts:156
The model's hard input limit — the denominator for utilization (#168).
remainingTokens
readonlyremainingTokens:number
Defined in: backend/src/context/assembler.ts:164
What is left for history and the model's reply.
Derived here rather than by each client, because max(0, limit - used) is the kind of arithmetic that gets
written twice and clamped once. Never negative: the assembler refuses to overflow, so a negative remainder
would be a bug reported as a number.
sections
readonlysections: readonlyInspectedSection[]
Defined in: backend/src/context/assembler.ts:152
totalTokens
readonlytotalTokens:number
Defined in: backend/src/context/assembler.ts:153