Skip to content

yggdrasil.aws.loki.router

router

Route a natural-language AWS request to a specialized aws-* skill.

In the interactive session, "list my s3 buckets", "show ec2 instances", "what lambda functions do I have", "who am I on aws" should do the thing — dispatch the right aws-* 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: every target is a list/describe skill; nothing here changes state. Mirrors :mod:yggdrasil.databricks.loki.router.

route

route(text: str) -> 'tuple[str, dict] | None'

Map a NL AWS request → (skill, kwargs), or None to reason.