@radzor/agent-router
Route prompts to different AI models or agents based on intent classification. Supports static rule-based routing, LLM-powered intent detection, and fallback chains for reliable multi-agent orchestration.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| apiKey* | string | — | API key for the classifier LLM used to detect intent (OpenAI-compatible).OPENAI_API_KEY |
| classifierModel | string | gpt-4o-mini | Model to use for intent classification. |
| baseUrl | string | https://api.openai.com/v1 | Base URL for the classifier API. |
| fallbackAgent | string | — | Name of the agent to use when no intent matches. If not set, routing throws on no match. |
API key for the classifier LLM used to detect intent (OpenAI-compatible).
OPENAI_API_KEY