@@ -100,14 +100,11 @@ german_agent = Agent(
100
100
101
101
102
102
103
-
104
-
105
103
```
106
104
107
105
### Step 2: Create the Router Team
108
106
109
107
```
110
-
111
108
from agno.team.team import Team
112
109
113
110
multi_language_team = Team(
@@ -138,14 +135,10 @@ multi_language_team = Team(
138
135
### Step 3: Run Multilingual Examples
139
136
140
137
```
141
-
142
-
143
138
multi_language_team.print_response("How are you?", stream=True) # English
144
139
multi_language_team.print_response("你好吗?", stream=True) # Chinese
145
140
multi_language_team.print_response("お元気ですか?", stream=True) # Japanese
146
141
multi_language_team.print_response("Comment allez-vous?", stream=True) # French
147
-
148
-
149
142
```
150
143
151
144
### Output:
@@ -157,12 +150,39 @@ multi_language_team.print_response("Comment allez-vous?", stream=True) # French
157
150
[French Agent]: Je vais bien, merci. Et vous ?
158
151
```
159
152
160
-
161
-
162
153
<center ><img src =" /img/screenshot-2025-07-21-at-3.38.47 pm.png " width =" 600 " height =" 550 " alt =" Agent Mode Parameters " title =" Agent Mode Parameters " ></center >
163
154
164
155
## Key Parameters Explained
165
156
157
+ <table border =" 1 " cellpadding =" 8 " cellspacing =" 0 " style =" border-collapse : collapse ; width : 100% ;" >
158
+ <thead style =" background-color :#f2f2f2 " >
159
+ <tr>
160
+ <th>Parameter</th>
161
+ <th>Description</th>
162
+ </tr>
163
+ </thead >
164
+ <tbody >
165
+ <tr>
166
+ <td><code>mode="route"</code></td>
167
+ <td>Instructs the team to act as a switchboard, not an executor</td>
168
+ </tr>
169
+ <tr>
170
+ <td><code>show_members_responses=True</code></td>
171
+ <td>Displays individual agent replies for traceability</td>
172
+ </tr>
173
+ <tr>
174
+ <td><code>instructions\[]</code></td>
175
+ <td>Core router logic: detect language, enforce exclusivity, manage fallbacks</td>
176
+ </tr>
177
+ <tr>
178
+ <td><code>model=OpenAIChat(...)</code></td>
179
+ <td>Backbone LLM used by the router team for input analysis</td>
180
+ </tr>
181
+ </tbody >
182
+ </table >
183
+
184
+
185
+
166
186
## Why Router Mode Works
167
187
168
188
* Context-awareness: Inputs are analyzed for language, not just keywords
0 commit comments