Skip to main content

Module registry

Module registry 

Source
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§

ModelEntry
One registered model: its name, the tasks it serves, and its backend.
ModelRegistry
Curated map of model name → entry, plus a default model per task.

Enums§

BackendKind
Which runtime executes a model.
ModelBackend
Backend-specific wiring for a registered model.
RegistryError
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.