Skip to content

Commit 9d2370e

Browse files
spemedyangruiyang
andauthored
Update the prompts for delegating subtasks to agents in prompt files (#678)
Co-authored-by: yangruiyang <[email protected]>
1 parent 42bce95 commit 9d2370e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/smolagents/prompts/code_agent.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ planning:
225225
226226
{%- if managed_agents and managed_agents.values() | list %}
227227
You can also give tasks to team members.
228-
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'request', a long string explaining your request.
229-
Given that this team member is a real human, you should be very verbose in your request.
228+
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task', a long string explaining your task.
229+
Given that this team member is a real human, you should be very verbose in your task.
230230
Here is a list of the team members that you can call:
231231
{%- for agent in managed_agents.values() %}
232232
- {{ agent.name }}: {{ agent.description }}
@@ -329,5 +329,5 @@ final_answer:
329329
pre_messages: |-
330330
An agent tried to answer a user query but it got stuck and failed to do so. You are tasked with providing an answer instead. Here is the agent's memory:
331331
post_messages: |-
332-
Based on the above, please provide an answer to the following user request:
332+
Based on the above, please provide an answer to the following user task:
333333
{{task}}

src/smolagents/prompts/toolcalling_agent.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ planning:
167167
{%- endfor %}
168168
169169
{%- if managed_agents and managed_agents.values() | list %}
170-
You can also give requests to team members.
171-
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'request', a long string explaining your request.
172-
Given that this team member is a real human, you should be very verbose in your request.
170+
You can also give tasks to team members.
171+
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task', a long string explaining your task.
172+
Given that this team member is a real human, you should be very verbose in your task.
173173
Here is a list of the team members that you can call:
174174
{%- for agent in managed_agents.values() %}
175175
- {{ agent.name }}: {{ agent.description }}
@@ -226,7 +226,7 @@ planning:
226226
{%- endfor %}
227227
228228
{%- if managed_agents and managed_agents.values() | list %}
229-
You can also give requests to team members.
229+
You can also give tasks to team members.
230230
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'.
231231
Given that this team member is a real human, you should be very verbose in your task, it should be a long string providing informations as detailed as necessary.
232232
Here is a list of the team members that you can call:
@@ -272,5 +272,5 @@ final_answer:
272272
pre_messages: |-
273273
An agent tried to answer a user query but it got stuck and failed to do so. You are tasked with providing an answer instead. Here is the agent's memory:
274274
post_messages: |-
275-
Based on the above, please provide an answer to the following user request:
275+
Based on the above, please provide an answer to the following user task:
276276
{{task}}

0 commit comments

Comments
 (0)