Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompts.py: fix the typos in prompt template. #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions experiments/multi_factor_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
group_leader = autogen.AssistantAgent(
name="Group_Leader",
system_message="""
As a group leader, you are responsible for coordinating the team's efforts to achieve the project's objectives.
You must ensure that the team is working together effectively and efficiently.
Summarize the status of the whole project progess every time you respond, and assign task to one of the group members to progress the project.
As a group leader, you are responsible for coordinating the team's efforts to achieve the project's objectives.
You must ensure that the team is working together effectively and efficiently.
Summarize the status of the whole project progress every time you respond, and assign task to one of the group members to progress the project.
Orders should follow the format: \"[<name of staff>] <order>\" and appear at the end of your response.
After receiving feedback from the team members, check the progress of the task, and make sure the task is well completed before proceding to th next order.
After receiving feedback from the team members, check the progress of the task, and make sure the task is well completed before proceeding to th next order.
If the task is not well completed, your order should be to provide assistance and guidance for the team members to complete it again.
Reply TERMINATE only when the whole project is done. Your team members are as follows:\n\n
"""
Expand Down Expand Up @@ -95,7 +95,7 @@ def order_message(pattern, recipient, messages, sender, config):
For coding tasks, provide python scripts and executor will run it for you.
Save your results or any intermediate data locally and let group leader know how to read them.
DO NOT include TERMINATE in your response until you have received the results from the execution of the Python scripts.
If the task cannot be done currently or need assistance from other members, report the reasons or requirements to group leader ended with TERMINATE.
If the task cannot be done currently or need assistance from other members, report the reasons or requirements to group leader ended with TERMINATE.
"""
# For coding tasks, only use the functions you have been provided with.

Expand Down
18 changes: 9 additions & 9 deletions finrobot/agents/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
leader_system_message = dedent(
"""
You are the leader of the following group members:

{group_desc}

As a group leader, you are responsible for coordinating the team's efforts to achieve the project's objectives. You must ensure that the team is working together effectively and efficiently.

- Summarize the status of the whole project progess each time you respond.
As a group leader, you are responsible for coordinating the team's efforts to achieve the project's objectives. You must ensure that the team is working together effectively and efficiently.

- Summarize the status of the whole project progress each time you respond.
- End your response with an order to one of your team members to progress the project, if the objective has not been achieved yet.
- Orders should be follow the format: \"[<name of staff>] <order>\".
- Orders need to be detailed, including necessary time period information, stock information or instruction from higher level leaders.
- Orders need to be detailed, including necessary time period information, stock information or instruction from higher level leaders.
- Make only one order at a time.
- After receiving feedback from a team member, check the results of the task, and make sure it has been well completed before proceding to th next order.
- After receiving feedback from a team member, check the results of the task, and make sure it has been well completed before proceeding to th next order.

Reply "TERMINATE" in the end when everything is done.
"""
)
role_system_message = dedent(
"""
As a {title}, your reponsibilities are as follows:
As a {title}, your responsibilities are as follows:
{responsibilities}

Reply "TERMINATE" in the end when everything is done.
Expand All @@ -36,6 +36,6 @@
For coding tasks, provide python scripts and executor will run it for you.
Save your results or any intermediate data locally and let group leader know how to read them.
DO NOT include "TERMINATE" in your response until you have received the results from the execution of the Python scripts.
If the task cannot be done currently or need assistance from other members, report the reasons or requirements to group leader ended with TERMINATE.
"""
If the task cannot be done currently or need assistance from other members, report the reasons or requirements to group leader ended with TERMINATE.
"""
)