Function: searchServingEndpoints()
searchServingEndpoints(
input,endpoints,options?):object[]
Fuzzy-rank endpoints by how closely their name matches input, best
(lowest score) first, keeping only those within threshold:
- An exact name match short-circuits to a single
score: 0result. - Otherwise the shared TypeScript policy tokenizes and scores every endpoint through the same fuzzy-distance policy used by lookupModels.
Returns [] for an empty endpoint list or when input tokenizes to nothing,
so callers fall back to the raw input and let Databricks surface a clean 404.
This multi-result core is shared by resolveModelId (single best) and
the ranked lookupModels selector.
Parameters
Section titled “Parameters”string
endpoints
Section titled “endpoints”readonly object[]
options?
Section titled “options?”requiresTools?
Section titled “requiresTools?”boolean = ...
threshold?
Section titled “threshold?”number = ...
Returns
Section titled “Returns”object[]