ResolvedContextWindow
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/contextWindow.ts:260
One resolution, read two ways: ResolvedContextWindow.source for the guard, which wants
only the number, and ResolvedContextWindow.read for /status, which also wants the
provenance.
They are handed out as a pair from a single factory call, over a single memoised promise, so the
number /status prints is by construction the number the guard enforced. Two independent
resolvers could disagree — a stale catalog on one and a fresh fetch on the other — and a
/status that describes a threshold nobody is using is worse than no /status line at all.
Properties
Section titled “Properties”read: () =>
Promise<ContextWindowReading>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/contextWindow.ts:264
The same resolution with its provenance attached. Shares the memoised promise.
Returns
Section titled “Returns”Promise<ContextWindowReading>
source
Section titled “source”source:
ContextWindowSource
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/contextWindow.ts:262
The window in tokens, or null for unknown. Memoised; safe to call before every model call.