Crewai Routing Tutorial
agentsllmsLlamaIndexarize-phoenixopenaitutorialsevalsllmopsai-monitoringaiengineeringprompt-engineeringdatasetsllm-evalcrewaiai-observabilityllm-evaluationsmolagentsanthropiclangchain
Export
[ ]
Set up Keys and Dependencies
Note: For this colab you'll need:
- OpenAI API key (https://openai.com/)
- Serper API key (https://serper.dev/)
- Phoenix API key (https://app.phoenix.arize.com/)
[ ]
[ ]
Configure Tracing
[ ]
Instrument CrewAI
[ ]
Define your Working Agents
[ ]
From here, there are two ways to do this -- through a routing Agent or through @router() decorator in Flows (allows you to define conditional routing logic based on the output of a method).
Option 1: Define your logic for Router Agent to classify the query & run corresponding Agent
[ ]
Examples Runs
[ ]
Option 2: Define your logic for @router() Decorator to define routing logic
[ ]
Examples Runs
[ ]