mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
improving reliability for agent tools
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user