fix: correct task scheduling and simplify agent internals
Fix queue cancellation, concurrency limits and worker status updates. Use direct Explorer imports, split the Diagnoser loop into helpers and remove unused tool registration and prompt-builder code. Correct model caching, endpoint selection and retry handling.
This commit is contained in:
1 parent
67248c887e
commit
12d7902a82
92 files changed
+1085
-1763
No files matched your search
+4
-3
@@ -87,7 +87,7 @@ async def test_explorer_all_tools_sequential_mocked():
|
||||
logger.addHandler(handler)
|
||||
|
||||
# Attach the main agent logger to capture internal step logs
|
||||
agent_logger = logging.getLogger("artemis.agents.explorer.explorer")
|
||||
agent_logger = logging.getLogger("artemis.agents.explorer")
|
||||
agent_logger.setLevel(logging.INFO)
|
||||
agent_logger.addHandler(handler)
|
||||
|
||||
@@ -238,12 +238,13 @@ async def test_explorer_all_tools_sequential_mocked():
|
||||
return_value=mock_client,
|
||||
),
|
||||
patch(
|
||||
"artemis.agents.explorer.explorer.StorageManager",
|
||||
"artemis.agents.explorer.run_setup.StorageManager",
|
||||
return_value=mock_storage,
|
||||
),
|
||||
# get_ocr_list is only exposed when an OCR backend is configured.
|
||||
patch("artemis.agents.explorer.explorer.is_ocr_configured", return_value=True),
|
||||
patch("artemis.agents.explorer.explorer._run_object_detection", mock_detect),
|
||||
patch("artemis.agents.explorer.run_setup.is_ocr_configured", return_value=True),
|
||||
patch("artemis.agents.explorer.perception_tools._run_object_detection", mock_detect),
|
||||
):
|
||||
explorer = Explorer(mock_ctx)
|
||||
result = await explorer.run(
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ async def test_explorer_ask_image_processor_tool():
|
||||
logger.addHandler(handler)
|
||||
|
||||
# Attach the main agent logger to capture internal step logs
|
||||
agent_logger = logging.getLogger("artemis.agents.explorer.explorer")
|
||||
agent_logger = logging.getLogger("artemis.agents.explorer")
|
||||
agent_logger.setLevel(logging.INFO)
|
||||
agent_logger.addHandler(handler)
|
||||
|
||||
|
||||
Reference in new issue
Block a user