Skip to content

ModelCapabilities

Defined in: src/models/model-info.ts:25

What the model can do. A yes/no fact is a boolean; a fact with more than two states is a string union, like PromptCaching (which mechanism). A fact about two features together gets its own field named after the pair. undefined is unknown either way.

readonly stateful?: boolean;

Defined in: src/models/model-info.ts:27

Whether the model keeps conversation state server-side; Model.stateful reads it.


readonly promptCaching?: PromptCaching;

Defined in: src/models/model-info.ts:29

Whether and how the model caches prompts.


readonly forcedToolChoice?: boolean;

Defined in: src/models/model-info.ts:31

Whether the model accepts a toolChoice that forces a tool call (any or a named tool).


readonly nativeStructuredOutput?: boolean;

Defined in: src/models/model-info.ts:33

Whether the provider can make the model’s text output conform to a JSON schema.