mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-29 18:18:13 +00:00
adding more specific guidelines to agent delegation tools
This commit is contained in:
@@ -46,10 +46,10 @@ class AgentTools(BaseModel):
|
|||||||
try:
|
try:
|
||||||
agent, task, information = command.split("|")
|
agent, task, information = command.split("|")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return "Error executing tool. Missing exact 3 pipe (|) separated values."
|
return "Error executing tool. Missing exact 3 pipe (|) separated values. For example, `coworker|task|information`."
|
||||||
|
|
||||||
if not agent or not task or not information:
|
if not agent or not task or not information:
|
||||||
return "Error executing tool. Missing exact 3 pipe (|) separated values."
|
return "Error executing tool. Missing exact 3 pipe (|) separated values. For example, `coworker|question|information`."
|
||||||
|
|
||||||
agent = [available_agent for available_agent in self.agents if available_agent.role == agent]
|
agent = [available_agent for available_agent in self.agents if available_agent.role == agent]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user