mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +00:00
Improving agent delegation prompt
This commit is contained in:
@@ -20,12 +20,12 @@ class AgentTools(BaseModel):
|
|||||||
description=dedent(
|
description=dedent(
|
||||||
f"""\
|
f"""\
|
||||||
Useful to delegate a specific task to one of the
|
Useful to delegate a specific task to one of the
|
||||||
following co-workers: [{', '.join([agent.role for agent in self.agents])}].
|
following co-workers: [{', '.join([agent.role for agent in self.agents])}].
|
||||||
The input to this tool should be a pipe (|) separated text of length
|
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),
|
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.
|
the task and all actual context you have for the task.
|
||||||
For example, `coworker|task|context`.
|
For example, `coworker|task|context`.
|
||||||
"""
|
"""
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Tool.from_function(
|
Tool.from_function(
|
||||||
@@ -34,12 +34,12 @@ class AgentTools(BaseModel):
|
|||||||
description=dedent(
|
description=dedent(
|
||||||
f"""\
|
f"""\
|
||||||
Useful to ask a question, opinion or take from on
|
Useful to ask a question, opinion or take from on
|
||||||
of the following co-workers: [{', '.join([agent.role for agent in self.agents])}].
|
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
|
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),
|
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.
|
the question and all actual context you have for the question.
|
||||||
For example, `coworker|question|context`.
|
For example, `coworker|question|context`.
|
||||||
"""
|
"""
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user