Definition: A system that decides, based on the characteristics of a task, which Model, Agent, Tool, or processing path should handle the request.

Simply put: A Router acts like a dispatcher that sends a task to the most appropriate option.

Examples:

  1. Simple question → cheaper model.
  2. Complex problem → reasoning model.
  3. Database question → Database Agent.

AI Agent My-Journey-In-Codeless