Skip to main content
This example demonstrates a team of AI agents working together to answer questions in different languages. The team consists of six specialized agents:
  1. English Agent - Can only answer in English
  2. Japanese Agent - Can only answer in Japanese
  3. Chinese Agent - Can only answer in Chinese
  4. Spanish Agent - Can only answer in Spanish
  5. French Agent - Can only answer in French
  6. German Agent - Can only answer in German
The team leader routes the user’s question to the appropriate language agent. With respond_directly=True, the selected agent responds directly without the team leader processing the response.
respond_directly_router_team.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Install required libraries

3

Set environment variables

4

Run the agent