From e5035569fad037260c9eeaf4919ec03b070aedc8 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 23 Dec 2024 13:06:37 -0500 Subject: [PATCH] Include work log in task agent context. --- ra_aid/agent_utils.py | 1 + ra_aid/prompts.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ra_aid/agent_utils.py b/ra_aid/agent_utils.py index 8b78cef..9ac368a 100644 --- a/ra_aid/agent_utils.py +++ b/ra_aid/agent_utils.py @@ -260,6 +260,7 @@ def run_task_implementation_agent( related_files=related_files, key_facts=get_memory_value('key_facts'), key_snippets=get_memory_value('key_snippets'), + work_log=get_memory_value('work_log'), expert_section=EXPERT_PROMPT_SECTION_IMPLEMENTATION if expert_enabled else "", human_section=HUMAN_PROMPT_SECTION_IMPLEMENTATION if _global_memory.get('config', {}).get('hil', False) else "" ) diff --git a/ra_aid/prompts.py b/ra_aid/prompts.py index f7f8a47..ced10bb 100644 --- a/ra_aid/prompts.py +++ b/ra_aid/prompts.py @@ -395,6 +395,11 @@ Key Snippets: Relevant Files: {related_files} +Work done so far: + +{work_log} + + Important Notes: - Focus solely on the given task and implement it as described. - Scale the complexity of your solution to the complexity of the request. For simple requests, keep it straightforward and minimal. For complex requests, maintain the previously planned depth.