Skip to main content
A simple Router directs each request to a specialist agent, and all agents share the same conversation history for context continuity. The router uses basic intent detection, but the real value is in the shared history.
06_intent_routing_with_history.py

Usage

1

Create a Python file

Create 06_intent_routing_with_history.py with the code above.
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Workflow