Skip to content

Interface: SelectModelInput

Intent + catalogue knobs passed to selectModel.

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.

ResolveModelInput.explicit


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.

ResolveModelInput.fallbacks


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).

ResolveModelInput.fuzzy


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.

ResolveModelInput.modelClass


optional requiresTools?: boolean

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

ResolveModelInput.requiresTools


optional threshold?: number

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

ResolveModelInput.threshold


optional ttlMs?: number

TTL override for the cached /serving-endpoints listing, in ms.