yggdrasil.databricks.loki.router¶
router ¶
Route a natural-language Databricks request to a specialized skill.
In the interactive session, "list the catalogs", "what tables are in
samples.nyctaxi", "describe samples.nyctaxi.trips", "show the warehouses" should
do the thing — dispatch the right databricks-* skill — not just reason
about it. :func:route maps the user's line to (skill_name, kwargs) for the
common, unambiguous read requests, or None to fall back to reasoning.
Read-only by design: it never routes to a state-changing action (triggering a
job, calling an MCP tool). Those stay explicit (ygg loki run …).
route ¶
Map a NL Databricks request → (skill, kwargs), or None to reason.