Update the prompts for delegating subtasks to agents in prompt files (#678)

Co-authored-by: yangruiyang <yangruiyang@bytedance.com>
This commit is contained in:
ruiyang yang 2025-02-17 22:18:32 +08:00 committed by GitHub
parent 42bce9501a
commit 9d2370ed4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -225,8 +225,8 @@ planning:
{%- if managed_agents and managed_agents.values() | list %} {%- if managed_agents and managed_agents.values() | list %}
You can also give tasks to team members. You can also give tasks to team members.
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. 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.
Given that this team member is a real human, you should be very verbose in your request. Given that this team member is a real human, you should be very verbose in your task.
Here is a list of the team members that you can call: Here is a list of the team members that you can call:
{%- for agent in managed_agents.values() %} {%- for agent in managed_agents.values() %}
- {{ agent.name }}: {{ agent.description }} - {{ agent.name }}: {{ agent.description }}
@ -329,5 +329,5 @@ final_answer:
pre_messages: |- pre_messages: |-
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: 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:
post_messages: |- post_messages: |-
Based on the above, please provide an answer to the following user request: Based on the above, please provide an answer to the following user task:
{{task}} {{task}}

View File

@ -167,9 +167,9 @@ planning:
{%- endfor %} {%- endfor %}
{%- if managed_agents and managed_agents.values() | list %} {%- if managed_agents and managed_agents.values() | list %}
You can also give requests to team members. You can also give tasks to team members.
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. 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.
Given that this team member is a real human, you should be very verbose in your request. Given that this team member is a real human, you should be very verbose in your task.
Here is a list of the team members that you can call: Here is a list of the team members that you can call:
{%- for agent in managed_agents.values() %} {%- for agent in managed_agents.values() %}
- {{ agent.name }}: {{ agent.description }} - {{ agent.name }}: {{ agent.description }}
@ -226,7 +226,7 @@ planning:
{%- endfor %} {%- endfor %}
{%- if managed_agents and managed_agents.values() | list %} {%- if managed_agents and managed_agents.values() | list %}
You can also give requests to team members. You can also give tasks to team members.
Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'. Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'.
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. 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.
Here is a list of the team members that you can call: Here is a list of the team members that you can call:
@ -272,5 +272,5 @@ final_answer:
pre_messages: |- pre_messages: |-
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: 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:
post_messages: |- post_messages: |-
Based on the above, please provide an answer to the following user request: Based on the above, please provide an answer to the following user task:
{{task}} {{task}}