Skip to content

Commit 64e23d2

Browse files
committed
Update Blog “part-6-agentic-ai-teams-in-router-mode-multilingual-routing-with-agno”
1 parent f945ae7 commit 64e23d2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

content/blog/part-6-agentic-ai-teams-in-router-mode-multilingual-routing-with-agno.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Imagine a chatbot that receives queries in different languages. Router Mode enab
4747

4848
We’ll define a set of language-specific agents and create a routing team that delegates accordingly.
4949

50-
#### Step 1: Define Language Agents
50+
#### Step 1: Define language Agents
5151

52-
```
52+
```python
5353
from agno.agent import Agent
5454
from agno.models.anthropic import Claude
5555
from agno.models.deepseek import DeepSeek
@@ -104,7 +104,7 @@ german_agent = Agent(
104104

105105
### Step 2: Create the Router Team
106106

107-
```
107+
```python
108108
from agno.team.team import Team
109109

110110
multi_language_team = Team(
@@ -134,7 +134,7 @@ multi_language_team = Team(
134134

135135
### Step 3: Run Multilingual Examples
136136

137-
```
137+
```python
138138
multi_language_team.print_response("How are you?", stream=True) # English
139139
multi_language_team.print_response("你好吗?", stream=True) # Chinese
140140
multi_language_team.print_response("お元気ですか?", stream=True) # Japanese
@@ -143,7 +143,7 @@ multi_language_team.print_response("Comment allez-vous?", stream=True) # French
143143

144144
### Output:
145145

146-
```
146+
```python
147147
[English Agent]: I'm doing great! How can I help you today?
148148
[Chinese Agent]: 我很好,谢谢你的关心。你呢?
149149
[Japanese Agent]: 元気です。あなたはお元気ですか?
@@ -171,7 +171,7 @@ multi_language_team.print_response("Comment allez-vous?", stream=True) # French
171171
<td>Displays individual agent replies for traceability</td>
172172
</tr>
173173
<tr>
174-
<td><code>instructions\[]</code></td>
174+
<td><code>instructions\\[]</code></td>
175175
<td>Core router logic: detect language, enforce exclusivity, manage fallbacks</td>
176176
</tr>
177177
<tr>
@@ -181,8 +181,6 @@ multi_language_team.print_response("Comment allez-vous?", stream=True) # French
181181
</tbody>
182182
</table>
183183

184-
185-
186184
## Why Router Mode works
187185

188186
* Context-awareness: Inputs are analyzed for language, not just keywords

0 commit comments

Comments
 (0)