Expand description
The model registry: the curated catalog that maps a SQL-referenced model name to the backend that runs it and the tasks it can serve.
The registry is built once at startup from server configuration and is
immutable thereafter. AI functions resolve model => '<name>' against it at
plan time and fail the query if the model is unknown or cannot perform the
requested task — never per event.
Structs§
- Model
Entry - One registered model: its name, the tasks it serves, and its backend.
- Model
Registry - Curated map of model name → entry, plus a default model per task.
Enums§
- Backend
Kind - Which runtime executes a model.
- Model
Backend - Backend-specific wiring for a registered model.
- Registry
Error - Errors from resolving or validating a model. Surfaced at plan time.
- Task
- A task contract an AI SQL function fulfils. Each
ai_*function maps to exactly one task; a model declares the subset of tasks it supports.