What problem does it solve?
This Skill optimizes LLM usage by intelligently routing requests to the most cost-effective model based on task complexity, significantly reducing operational expenses without compromising output quality.
Core Features & Use Cases
- Dynamic Model Routing: Automatically selects the best LLM (budget, mid-tier, or flagship) for each task.
- Cost Management: Tracks LLM costs in real-time, enabling profitability monitoring and per-organization attribution.
- Provider Extensibility: Supports Anthropic, OpenAI, and Google Gemini, with easy integration for new providers.
- Use Case: An agent needs to perform a simple profanity check on a user comment. SmartRouter routes this to a low-cost budget model. Later, the same agent needs to generate a complex marketing strategy; SmartRouter routes this to a high-performance flagship model.
Quick Start
Use the smartRouter.complete method to send a user message to the LLM, specifying the agent name and task type.