Synchronize Instances from AgentScope (#29)
This commit is contained in:
@@ -8,6 +8,7 @@ from pydantic import BaseModel
|
||||
|
||||
from agentscope.tool import Toolkit, ToolResponse
|
||||
|
||||
|
||||
TOOL_RESULTS_MAX_WORDS = 5000
|
||||
|
||||
|
||||
@@ -219,7 +220,7 @@ def load_prompt_dict() -> dict:
|
||||
|
||||
prompt_dict["reasoning_prompt"] = (
|
||||
"## Current Subtask:\n{objective}\n"
|
||||
"## Working Plan:\n{meta_planner_agent}\n"
|
||||
"## Working Plan:\n{plan}\n"
|
||||
"{knowledge_gap}\n"
|
||||
"## Research Depth:\n{depth}"
|
||||
)
|
||||
@@ -281,17 +282,14 @@ def load_prompt_dict() -> dict:
|
||||
|
||||
prompt_dict["summarize_hint"] = (
|
||||
"Based on your work history above, examine which step in the "
|
||||
"following working meta_planner_agent has been "
|
||||
"completed. Mark the completed "
|
||||
"following working plan has been completed. Mark the completed "
|
||||
"step with [DONE] at the end of its line (e.g., k. step k [DONE]) "
|
||||
"and leave the uncompleted steps unchanged. You MUST return only "
|
||||
"the updated meta_planner_agent, preserving exactly "
|
||||
"the same format as the "
|
||||
"original meta_planner_agent. Do not include any "
|
||||
"explanations, reasoning, "
|
||||
"the updated plan, preserving exactly the same format as the "
|
||||
"original plan. Do not include any explanations, reasoning, "
|
||||
"or section headers such as '## Working Plan:', just output the"
|
||||
"updated meta_planner_agent itself."
|
||||
"\n\n## Working Plan:\n{meta_planner_agent}"
|
||||
"updated plan itself."
|
||||
"\n\n## Working Plan:\n{plan}"
|
||||
)
|
||||
|
||||
prompt_dict["summarize_inst"] = (
|
||||
@@ -307,19 +305,17 @@ def load_prompt_dict() -> dict:
|
||||
"following report that consolidates and summarizes the essential "
|
||||
"findings:\n {intermediate_report}\n\n"
|
||||
"Such report has been saved to the {report_path}. "
|
||||
"I will now **proceed to the next item** "
|
||||
"in the working meta_planner_agent."
|
||||
"I will now **proceed to the next item** in the working plan."
|
||||
)
|
||||
|
||||
prompt_dict["save_report_hint"] = (
|
||||
"The milestone results of the current "
|
||||
"item in working meta_planner_agent "
|
||||
"The milestone results of the current item in working plan "
|
||||
"are summarized into the following report:\n{intermediate_report}"
|
||||
)
|
||||
|
||||
prompt_dict["reflect_instruction"] = (
|
||||
"## Work History:\n{conversation_history}\n"
|
||||
"## Working Plan:\n{meta_planner_agent}\n"
|
||||
"## Working Plan:\n{plan}\n"
|
||||
)
|
||||
|
||||
prompt_dict["subtask_complete_hint"] = (
|
||||
|
||||
Reference in New Issue
Block a user