Intent is the routing hint every adapter class takes. It’s a re-export of RoutingIntent from @spekoai/sdk, so anything you already have typed as a RoutingIntent passes through without conversion.
Type
validateIntent(intent)
Throws a descriptive Error when the intent is malformed. Called by every adapter class constructor, so a bad intent fails at construction time rather than deep inside the first STT / LLM / TTS call.
languagemust be a non-empty string.verticalmust be one ofgeneral,healthcare,finance,legal.optimizeFor, if set, must be one ofbalanced,accuracy,latency,cost.
en) and region-tagged codes (es-MX) and normalises downstream.