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.
Properties
Section titled “Properties”stateful?
Section titled “stateful?”readonly stateful?: boolean;Defined in: src/models/model-info.ts:27
Whether the model keeps conversation state server-side; Model.stateful reads it.
promptCaching?
Section titled “promptCaching?”readonly promptCaching?: PromptCaching;Defined in: src/models/model-info.ts:29
Whether and how the model caches prompts.
forcedToolChoice?
Section titled “forcedToolChoice?”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).
nativeStructuredOutput?
Section titled “nativeStructuredOutput?”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.