feat: add Android task file evidence and finalize plugin design
This commit is contained in:
1 parent
96fedc816f
commit
72ff342605
20 files changed
+1005
-35
No files matched your search
@@ -64,7 +64,7 @@ def load_operator_prompts() -> dict[str, str]:
|
||||
# artemis/agents/prompt_assembly.py for the assembly rationale.
|
||||
|
||||
_PRE_DECISION_HELPER_TOOLS = ("ask_explorer", "ask_diagnoser", "video_analyzer")
|
||||
_PRE_DECISION_ADB_TOOLS = ("run_adb_command", "manage_task")
|
||||
_PRE_DECISION_ADB_TOOLS = ("run_adb_command", "manage_task", "android_file")
|
||||
_PRE_DECISION_MEMORY_TOOLS = (
|
||||
"read_note",
|
||||
"list_notes",
|
||||
@@ -203,6 +203,10 @@ def resolve_operator_prompt_tools(ctx: ArtemisContext) -> frozenset[str]:
|
||||
# video_recording_tools_enabled); the prompt must not advertise it when the
|
||||
# tool is not actually available this run.
|
||||
available = set(OPERATOR_PROMPT_TOOLSET)
|
||||
from artemis.tools.android_files import android_file
|
||||
|
||||
if not android_file.is_available(ctx):
|
||||
available.discard("android_file")
|
||||
setup = getattr(ctx, "execution_setup", None)
|
||||
if not (setup and getattr(setup, "video_recording_tools_enabled", False)):
|
||||
available.discard("video_analyzer")
|
||||
|
||||
Reference in new issue
Block a user