About Router Agent#

The router agent is a control flow component that analyzes incoming requests and directs them to the most appropriate branch based on the request configuration. The agent pairs single-pass architecture with intelligent request routing to analyze prompts and selects one branch that best handles the request. The agent is ideal for scenarios where different types of requests need specialized handling.

The agent uses the NVIDIA NeMo Agent toolkit core library agents and tools to simplify your development experience and deployment. Additionally, you can customize prompts in your YAML config files for your specific needs.

High-Level Breakdown of the Router Agent#

The router agent’s implementation uses a two-node graph structure:

  1. Router Node: In the routing phase, analyzes the request and selects the appropriate branch.

  2. Branch Node: In the execution phase, executes the selected branch and returns the result.