diff --git a/experiments/multi_factor_agents.py b/experiments/multi_factor_agents.py index 7f834fa..4c56e02 100644 --- a/experiments/multi_factor_agents.py +++ b/experiments/multi_factor_agents.py @@ -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: \"[] \" 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 """ @@ -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. diff --git a/finrobot/agents/prompts.py b/finrobot/agents/prompts.py index 90996f1..14495d5 100644 --- a/finrobot/agents/prompts.py +++ b/finrobot/agents/prompts.py @@ -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: \"[] \". - - 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. @@ -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. + """ )