Files
simular-ai--agent-s/gui_agents/s1/aci/ACI.py
T
wehub-resource-sync c8c954c85d
lint / build (3.10) (push) Failing after 1s
lint / build (3.11) (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:23:35 +08:00

37 lines
857 B
Python

import logging
from typing import Any, Dict, List
logger = logging.getLogger("desktopenv.agent")
def agent_action(func):
func.is_agent_action = True
return func
class ACI:
def __init__(self, top_app_only: bool = True, ocr: bool = False):
self.top_app_only = top_app_only
self.ocr = ocr
self.index_out_of_range_flag = False
self.notes: List[str] = []
self.clipboard = ""
self.nodes: List[Any] = []
def get_active_apps(self, obs: Dict) -> List[str]:
pass
def get_top_app(self):
pass
def preserve_nodes(self, tree: Any, exclude_roles: set = None) -> List[Dict]:
pass
def linearize_and_annotate_tree(
self, obs: Dict, show_all_elements: bool = False
) -> str:
pass
def find_element(self, element_id: int) -> Dict:
pass