improving reliability for agent tools

This commit is contained in:
João Moura
2024-02-19 22:48:47 -03:00
parent 4c519d9d98
commit ef024ca106

View File

@@ -45,7 +45,7 @@ class AgentTools(BaseModel):
agent = [
available_agent
for available_agent in self.agents
if available_agent.role.lower() == agent.lower()
if available_agent.role.strip().lower() == agent.strip().lower()
]
if not agent: