Skip to main content
Use Router to pick one execution path based on the input. A selector function looks at the topic and returns the step to run, so each request gets the research method that fits it. When to use: When you need mutually exclusive execution paths based on business logic. Ideal for topic-specific workflows, expertise routing, or when different subjects require completely different processing strategies. Unlike Conditions which can trigger multiple parallel paths, Router selects exactly one path. Install dependencies:
router_steps_workflow.py