Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test validate_tools_and_managed_agents #731

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

albertvillanova
Copy link
Member

Test _validate_tools_and_managed_agents.

Follow-up PR to:

@albertvillanova
Copy link
Member Author

# Invalid case: tool name same as managed agent name
([MockTool("tool1")], [MockAgent("tool1", [MockTool("final_answer")])], pytest.raises(ValueError)),
# Invalid case: tool name same as managed agent's tool name
([MockTool("tool1")], [MockAgent("agent1", [MockTool("tool1")])], pytest.raises(ValueError)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this specific case should raise an error? For me the disambiguation is to save the model a confusion : since the manager agent's model will never see the managed agent tools, this would not be a problem.

# Invalid case: tool name same as managed agent's tool name
([MockTool("tool1")], [MockAgent("agent1", [MockTool("tool1")])], pytest.raises(ValueError)),
# Invalid case: duplicate managed agent name and managed agent tool name
([], [MockAgent("tool1", [MockTool("tool1")])], pytest.raises(ValueError)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, I'm not sure that this should raise an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants