Skip to content

Variable: RankedModelSchema

const RankedModelSchema: ZodObject<{ endpoint: ZodObject<{ class: ZodOptional<ZodEnum<{ chat-balanced: "chat-balanced"; chat-fast: "chat-fast"; chat-thinking: "chat-thinking"; embedding: "embedding"; }>>; description: ZodOptional<ZodString>; dimension: ZodOptional<ZodNumber>; displayName: ZodOptional<ZodString>; family: ZodOptional<ZodString>; modelServiceName: ZodOptional<ZodString>; name: ZodString; profile: ZodOptional<ZodObject<{ cost: ZodOptional<ZodNumber>; quality: ZodOptional<ZodNumber>; speed: ZodOptional<ZodNumber>; }, $strip>>; reasoningEfforts: ZodOptional<ZodArray<ZodEnum<{ high: "high"; low: "low"; max: "max"; medium: "medium"; minimal: "minimal"; none: "none"; xhigh: "xhigh"; }>>>; serviceNames: ZodOptional<ZodRecord<ZodString, ZodString>>; state: ZodOptional<ZodString>; status: ZodOptional<ZodObject<{ deprecated: ZodDefault<ZodBoolean>; }, $strip>>; supportsTools: ZodOptional<ZodBoolean>; task: ZodOptional<ZodString>; }, $strip>; modelClass: ZodEnum<{ chat-balanced: "chat-balanced"; chat-fast: "chat-fast"; chat-thinking: "chat-thinking"; embedding: "embedding"; }>; score: ZodOptional<ZodNumber>; }, $strip>

One ranked model-search result.

  • endpoint: Normalized endpoint chosen for this result.
  • endpoint.name: Serving endpoint invoke id.
  • endpoint.displayName (optional): Human-readable label when the workspace provides one.
  • endpoint.family (optional): Detected model family used for grouping and sort order.
  • endpoint.task (optional): Databricks serving task reported for the endpoint.
  • endpoint.state (optional): Serving endpoint lifecycle state.
  • endpoint.description (optional): Workspace-provided endpoint description.
  • endpoint.supportsTools (optional): True when the endpoint accepts tool calls.
  • endpoint.profile (optional): Relative quality, speed, and cost scores.
  • endpoint.profile.quality (optional): Relative quality score for ranking.
  • endpoint.profile.speed (optional): Relative speed score for ranking.
  • endpoint.profile.cost (optional): Relative cost score for ranking.
  • endpoint.class (optional): Intent-oriented class assigned to this endpoint.
  • endpoint.serviceNames (optional): Provider-specific service name aliases keyed by protocol.
  • endpoint.modelServiceName (optional): Canonical model-service name used for metadata lookup.
  • endpoint.reasoningEfforts (optional): Reasoning effort values this endpoint accepts.
  • endpoint.status (optional): Retirement status for this endpoint.
  • endpoint.status.deprecated (optional): True when the model should no longer be selected by default.
  • endpoint.dimension (optional): Embedding vector size when the endpoint is an embedding model.
  • modelClass: Class used to rank this result.
  • score (optional): Fuzzy-match score in the range 0 to 1.