mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
修改了提示词的格式
This commit is contained in:
parent
0ec3ac8136
commit
ca1a44c3c4
3 changed files with 4 additions and 4 deletions
|
|
@ -323,4 +323,4 @@ class WritePRD(Action):
|
|||
md_output_filename = output_pathname.with_suffix(".md")
|
||||
await save_json_to_markdown(content=new_prd.content, output_filename=md_output_filename)
|
||||
await reporter.async_report(md_output_filename, "path")
|
||||
return f'PRD filename: "{str(output_pathname)}". The "Create the PRD" task has been completed and is now marked as finished.'
|
||||
return f'PRD filename: "{str(output_pathname)}". The product requirement document (PRD) has been completed.'
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Note:
|
|||
"""
|
||||
# To ensure compatibility with hard-coded experience, do not add any other content between "# Example" and "# Available Commands".
|
||||
CMD_PROMPT = """
|
||||
# latest observation
|
||||
# Latest Observation
|
||||
{latest_observation}
|
||||
|
||||
# Data Structure
|
||||
|
|
@ -50,7 +50,7 @@ In your response, include at least one command.
|
|||
|
||||
# Your commands in a json array, in the following output format with correct command_name and args. If there is nothing to do, use the pass or end command:
|
||||
Some text indicating your thoughts before JSON is required, such as what tasks have been completed, what tasks are next, how you should update the plan status, respond to inquiry, or seek for help. Then a json array of commands. You must output ONE and ONLY ONE json array. DON'T output multiple json arrays with thoughts between them.
|
||||
Firstly, describe the actions you have taken recently.
|
||||
Firstly, describe the actions you have taken recently.
|
||||
Secondly, describe the messages you have received recently, with a particular emphasis on messages from users.
|
||||
Thirdly, describe your current task . Review the histroy, if you find that the current task is identical to a previously completed one, it indicates that the current task has already been accomplished.
|
||||
Then, articulate your thoughts and list the commands, adhering closely to the instructions provided.
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ class RoleZero(Role):
|
|||
|
||||
elif cmd["command_name"] == "end":
|
||||
self._set_state(-1)
|
||||
command_output = " "
|
||||
command_output = ""
|
||||
|
||||
return command_output
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue