Skip to content

Documentation / @agentick/shared / formatContextWindow

Function: formatContextWindow() ​

formatContextWindow(tokens): string

Defined in: model-catalog.ts:931

Format context window for display.

Parameters ​

tokens ​

number

Number of tokens

Returns ​

string

Formatted string like "128K" or "1M" or "10M"

Released under the ISC License.