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
this can result in incorrect identification of agents because you can have e.g. 'image2you' and 'image4you' agents and they would become image-you and image-you hence orchestrator would say that agent with the same id already exists
Expected Behaviour
if an agent name includes digits e.g. 'Image2You' a generated agent id should be 'image-2-you' or 'image2you'
Current Behaviour
currently the regex in 'generate_key_from_name' method in 'agents.py' https://github.com/awslabs/multi-agent-orchestrator/blob/main/python/src/multi_agent_orchestrator/agents/agent.py#L52 removes digits as well leaving agent id without digits
agent name 'Image2You' becomes image-text
this can result in incorrect identification of agents because you can have e.g. 'image2you' and 'image4you' agents and they would become image-you and image-you hence orchestrator would say that agent with the same id already exists
Code snippet
Possible Solution
change regex pattern to '[^a-zA-Z0-9\s-]' to include digits in generated agent id
Steps to Reproduce
agent1 = BedrockLLMAgent(BedrockLLMAgentOptions(
name='Image2You',
description='Some description'
))
agent2 = BedrockLLMAgent(BedrockLLMAgentOptions(
name='Image4You',
description='Some description'
))
orchestrator.add_agent(agent1)
orchestrator.add_agent(agent2)
The text was updated successfully, but these errors were encountered: