Skip to content

Commit

Permalink
Improving agent delegation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Jan 8, 2024
1 parent 55de63f commit f101dc5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crewai/tools/agent_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def tools(self):
description=dedent(
f"""\
Useful to delegate a specific task to one of the
following co-workers: [{', '.join([agent.role for agent in self.agents])}].
The input to this tool should be a pipe (|) separated text of length
three, representing the co-worker you want to ask it to (one of the options),
following co-workers: [{', '.join([agent.role for agent in self.agents])}].
The input to this tool should be a pipe (|) separated text of length
three, representing the co-worker you want to ask it to (one of the options),
the task and all actual context you have for the task.
For example, `coworker|task|context`.
"""
"""
),
),
Tool.from_function(
Expand All @@ -34,12 +34,12 @@ def tools(self):
description=dedent(
f"""\
Useful to ask a question, opinion or take from on
of the following co-workers: [{', '.join([agent.role for agent in self.agents])}].
The input to this tool should be a pipe (|) separated text of length
three, representing the co-worker you want to ask it to (one of the options),
of the following co-workers: [{', '.join([agent.role for agent in self.agents])}].
The input to this tool should be a pipe (|) separated text of length
three, representing the co-worker you want to ask it to (one of the options),
the question and all actual context you have for the question.
For example, `coworker|question|context`.
"""
"""
),
),
]
Expand Down

0 comments on commit f101dc5

Please sign in to comment.