Skip to content

Interface: ResolveModelInput

Caller intent passed to resolveModel.

optional explicit?: string

Explicit model id / loose name (per-request override, agent / plugin default, or env var). When set it wins over modelClass and fallbacks.


optional fallbacks?: readonly string[]

Operator-supplied fallback ids tried first in the no-explicit, no-class path (e.g. a regulated workspace pinned to an approved subset), ahead of the auto-classified catalogue.


optional fuzzy?: boolean

Fuzzy-match an explicit name against the live catalogue so loose names like "claude sonnet" resolve. Default true. When false the explicit input is returned verbatim (Databricks surfaces the canonical 404 if it doesn’t exist).


optional modelClass?: ModelClass

Chat capability class to resolve when no explicit id is given. The live catalogue is classified by its Foundation Model API scores and the top available model in the class (and the chat bands below it) wins, falling back to the class’s small static list.


optional requiresTools?: boolean

Require a model that supports a complete function-tool round-trip.


optional threshold?: number

Fuse.js threshold forwarded to the fuzzy search match (searchServingEndpoints).