mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
improving reliability for agent tools
This commit is contained in:
@@ -45,7 +45,7 @@ class AgentTools(BaseModel):
|
|||||||
agent = [
|
agent = [
|
||||||
available_agent
|
available_agent
|
||||||
for available_agent in self.agents
|
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:
|
if not agent:
|
||||||
|
|||||||
Reference in New Issue
Block a user