CountTokensOptions
Defined in: src/models/model.ts:298
Options for counting tokens in a set of messages.
Properties
Section titled “Properties”systemPrompt?
Section titled “systemPrompt?”systemPrompt?: SystemPrompt;Defined in: src/models/model.ts:303
System prompt to guide the model’s behavior. Can be a simple string or an array of content blocks for advanced caching.
toolSpecs?
Section titled “toolSpecs?”toolSpecs?: ToolSpec[];Defined in: src/models/model.ts:308
Array of tool specifications to include in the count.