You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
We default tool_choice for teams in the different modes. Users need to
be able to choose whether it needs to be required or not.
---
## Type of change
Please check the options that are relevant:
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Model update (Addition or modification of models)
- [ ] Other (please describe):
---
## Checklist
- [ ] Adherence to standards: Code complies with Agno’s style guidelines
and best practices.
- [ ] Formatting and validation: You have run `./scripts/format.sh` and
`./scripts/validate.sh` to ensure code is formatted and linted.
- [ ] Self-review completed: A thorough review has been performed by the
contributor(s).
- [ ] Documentation: Docstrings and comments have been added or updated
for any complex logic.
- [ ] Examples and guides: Relevant cookbook examples have been included
or updated (if applicable).
- [ ] Tested in a clean environment: Changes have been tested in a clean
environment to confirm expected behavior.
- [ ] Tests (optional): Tests have been added or updated to cover any
new or changed functionality.
---
## Additional Notes
Include any deployment notes, performance implications, security
considerations, or other relevant information (e.g., screenshots or logs
if applicable).
Copy file name to clipboardExpand all lines: cookbook/examples/teams/route/multi_language_team.py
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,6 @@
5
5
fromagno.models.openaiimportOpenAIChat
6
6
fromagno.team.teamimportTeam
7
7
8
-
english_agent=Agent(
9
-
name="English Agent",
10
-
role="You only answer in English",
11
-
model=OpenAIChat(id="gpt-4o"),
12
-
)
13
8
japanese_agent=Agent(
14
9
name="Japanese Agent",
15
10
role="You only answer in Japanese",
@@ -41,7 +36,6 @@
41
36
mode="route",
42
37
model=OpenAIChat("gpt-4o"),
43
38
members=[
44
-
english_agent,
45
39
spanish_agent,
46
40
japanese_agent,
47
41
french_agent,
@@ -52,8 +46,9 @@
52
46
instructions=[
53
47
"Identify the language of the user's question and direct it to the appropriate language agent.",
54
48
"Let the language agent answer the question in the language of the user's question.",
55
-
"If the user asks in a language whose agent is not a team member, respond in English with:",
56
-
"'I only answer in the following languages: English, Spanish, Japanese, French and German. Please ask your question in one of these languages.'",
49
+
"The the user asks a question in English, respond directly in English with:",
50
+
"If the user asks in a language that is not English or your don't have a member agent for that language, respond in English with:",
51
+
"'I only answer in the following languages: English, Spanish, Japanese, Chinese, French and German. Please ask your question in one of these languages.'",
57
52
"Always check the language of the user's input before routing to an agent.",
58
53
"For unsupported languages like Italian, respond in English with the above message.",
0 commit comments