add project info to reasoning assist prompts
This commit is contained in:
parent
3db7cc2ca9
commit
a18998be0d
|
|
@ -202,6 +202,7 @@ def run_task_implementation_agent(
|
||||||
related_files="\n".join(related_files),
|
related_files="\n".join(related_files),
|
||||||
env_inv=env_inv,
|
env_inv=env_inv,
|
||||||
tool_metadata=formatted_tool_metadata,
|
tool_metadata=formatted_tool_metadata,
|
||||||
|
project_info=formatted_project_info,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Show the reasoning assist query in a panel
|
# Show the reasoning assist query in a panel
|
||||||
|
|
|
||||||
|
|
@ -197,6 +197,7 @@ def run_planning_agent(
|
||||||
related_files=related_files,
|
related_files=related_files,
|
||||||
env_inv=env_inv,
|
env_inv=env_inv,
|
||||||
tool_metadata=formatted_tool_metadata,
|
tool_metadata=formatted_tool_metadata,
|
||||||
|
project_info=formatted_project_info,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Show the reasoning assist query in a panel
|
# Show the reasoning assist query in a panel
|
||||||
|
|
|
||||||
|
|
@ -216,6 +216,7 @@ def run_research_agent(
|
||||||
related_files=related_files,
|
related_files=related_files,
|
||||||
env_inv=get_env_inv(),
|
env_inv=get_env_inv(),
|
||||||
tool_metadata=formatted_tool_metadata,
|
tool_metadata=formatted_tool_metadata,
|
||||||
|
project_info=formatted_project_info,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Show the reasoning assist query in a panel
|
# Show the reasoning assist query in a panel
|
||||||
|
|
@ -511,8 +512,8 @@ def run_web_research_agent(
|
||||||
console.print(Panel(Markdown(console_message), title="🔬 Researching..."))
|
console.print(Panel(Markdown(console_message), title="🔬 Researching..."))
|
||||||
|
|
||||||
logger.debug("Web research agent completed successfully")
|
logger.debug("Web research agent completed successfully")
|
||||||
none_or_fallback_handler = init_fallback_handler(agent, tools)
|
none_or_fallback_handler = agent_utils.init_fallback_handler(agent, tools)
|
||||||
_result = run_agent_with_retry(agent, prompt, none_or_fallback_handler)
|
_result = agent_utils.run_agent_with_retry(agent, prompt, none_or_fallback_handler)
|
||||||
if _result:
|
if _result:
|
||||||
# Log web research completion
|
# Log web research completion
|
||||||
log_work_event(f"Completed web research phase for: {query}")
|
log_work_event(f"Completed web research phase for: {query}")
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ Working Directory: {working_directory}
|
||||||
{related_files}
|
{related_files}
|
||||||
</related files>
|
</related files>
|
||||||
|
|
||||||
|
<project info>
|
||||||
|
{project_info}
|
||||||
|
</project info>
|
||||||
|
|
||||||
<environment information>
|
<environment information>
|
||||||
{env_inv}
|
{env_inv}
|
||||||
</environment information>
|
</environment information>
|
||||||
|
|
@ -85,6 +89,10 @@ Working Directory: {working_directory}
|
||||||
{related_files}
|
{related_files}
|
||||||
</related files>
|
</related files>
|
||||||
|
|
||||||
|
<project info>
|
||||||
|
{project_info}
|
||||||
|
</project info>
|
||||||
|
|
||||||
<environment information>
|
<environment information>
|
||||||
{env_inv}
|
{env_inv}
|
||||||
</environment information>
|
</environment information>
|
||||||
|
|
@ -147,6 +155,10 @@ Working Directory: {working_directory}
|
||||||
{related_files}
|
{related_files}
|
||||||
</related files>
|
</related files>
|
||||||
|
|
||||||
|
<project info>
|
||||||
|
{project_info}
|
||||||
|
</project info>
|
||||||
|
|
||||||
<environment information>
|
<environment information>
|
||||||
{env_inv}
|
{env_inv}
|
||||||
</environment information>
|
</environment information>
|
||||||
|
|
@ -166,6 +178,8 @@ Given the available information, tools, and base task or query, write a couple p
|
||||||
|
|
||||||
The agent is so dumb it needs you to explicitly say how to use the parameters to the tools as well.
|
The agent is so dumb it needs you to explicitly say how to use the parameters to the tools as well.
|
||||||
|
|
||||||
|
ONLY FOR NEW PROJECTS: If this is a new project, most of the focus needs to be on asking the expert, reading/research available library files, emitting key snippets/facts, and most importantly research notes to lay out that we have a new project and what we are building. DO NOT INSTRUCT THE AGENT TO LIST PROJECT DIRECTORIES/READ FILES IF WE ALREADY KNOW THERE ARE NO PROJECT FILES.
|
||||||
|
|
||||||
Answer quickly and confidently with five sentences at most.
|
Answer quickly and confidently with five sentences at most.
|
||||||
|
|
||||||
DO NOT WRITE CODE
|
DO NOT WRITE CODE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue