Allow agents to deregister related files

This commit is contained in:
user 2024-12-22 15:09:10 -05:00
parent 79360f761c
commit 678722f37f
3 changed files with 13 additions and 3 deletions

View File

@ -455,6 +455,11 @@ Exit Criteria:
- Until such confirmation, continue to engage and ask_human if additional clarification is required. - Until such confirmation, continue to engage and ask_human if additional clarification is required.
- If there are any doubts about final correctness or thoroughness, consult the expert (if expert is available) before concluding. - If there are any doubts about final correctness or thoroughness, consult the expert (if expert is available) before concluding.
Context Cleanup:
- Use delete_key_facts to remove any key facts that no longer apply.
- Use delete_key_snippets to remove any key snippets that no longer apply.
- Use delete_research_notes to remove any research notes that no longer apply.
Remember: Remember:
- Always begin by calling ask_human. - Always begin by calling ask_human.
- Always ask_human before finalizing or exiting. - Always ask_human before finalizing or exiting.

View File

@ -3,7 +3,7 @@ from ra_aid.tools import (
ask_expert, ask_human, run_shell_command, run_programming_task, ask_expert, ask_human, run_shell_command, run_programming_task,
emit_research_notes, emit_plan, emit_related_files, emit_task, emit_research_notes, emit_plan, emit_related_files, emit_task,
emit_expert_context, emit_key_facts, delete_key_facts, emit_expert_context, emit_key_facts, delete_key_facts,
emit_key_snippets, delete_key_snippets, delete_tasks, read_file_tool, emit_key_snippets, delete_key_snippets, delete_related_files, delete_tasks, read_file_tool,
fuzzy_find_project_files, ripgrep_search, list_directory_tree, fuzzy_find_project_files, ripgrep_search, list_directory_tree,
swap_task_order, monorepo_detected, existing_project_detected, ui_detected, swap_task_order, monorepo_detected, existing_project_detected, ui_detected,
task_completed, plan_implementation_completed task_completed, plan_implementation_completed
@ -20,6 +20,7 @@ def get_read_only_tools(human_interaction: bool = False) -> list:
delete_key_facts, delete_key_facts,
emit_key_snippets, emit_key_snippets,
delete_key_snippets, delete_key_snippets,
delete_related_files,
list_directory_tree, list_directory_tree,
read_file_tool, read_file_tool,
fuzzy_find_project_files, fuzzy_find_project_files,
@ -114,7 +115,10 @@ def get_chat_tools(expert_enabled: bool = True) -> list:
tools = [ tools = [
ask_human, ask_human,
request_research, request_research,
request_research_and_implementation request_research_and_implementation,
delete_key_facts,
delete_key_snippets,
delete_related_files
] ]
return tools return tools

View File

@ -13,13 +13,14 @@ from .memory import (
delete_tasks, emit_research_notes, emit_plan, emit_task, get_memory_value, emit_key_facts, delete_tasks, emit_research_notes, emit_plan, emit_task, get_memory_value, emit_key_facts,
request_implementation, delete_key_facts, request_implementation, delete_key_facts,
emit_key_snippets, delete_key_snippets, emit_related_files, swap_task_order, task_completed, emit_key_snippets, delete_key_snippets, emit_related_files, swap_task_order, task_completed,
plan_implementation_completed plan_implementation_completed, delete_related_files
) )
__all__ = [ __all__ = [
'ask_expert', 'ask_expert',
'delete_key_facts', 'delete_key_facts',
'delete_key_snippets', 'delete_key_snippets',
'delete_related_files',
'emit_expert_context', 'emit_expert_context',
'emit_key_facts', 'emit_key_facts',
'emit_key_snippets', 'emit_key_snippets',