f81a8b086e
- Introduced TodoListMiddleware to the middleware stack for better task management. - Updated HITL interrupt configuration to include 'delete' operations requiring approval. - Implemented error handling for delete operations in read-only and memory backends. - Enhanced approval prompt formatting to display file paths for delete actions. - Added tests to ensure delete operations are correctly blocked or prompted for approval. - Updated dependencies to use deepagents 0.7.0 and langchain 1.5.3 for improved functionality.
13 lines
346 B
Python
13 lines
346 B
Python
"""HITL interrupt policy: which tools require approval on attended agents."""
|
|
|
|
|
|
def test_hitl_interrupt_on_arms_expected_tools():
|
|
from EvoScientist.EvoScientist import HITL_INTERRUPT_ON
|
|
|
|
assert HITL_INTERRUPT_ON == {
|
|
"execute": True,
|
|
"run_in_background": True,
|
|
"schedule_task": True,
|
|
"delete": True,
|
|
}
|