Wxy/opencua (#260)

* OpenCUA Agent code base

* update url

* debug, modify url input

* debug opencua

* show result

* debug agent history overlap

* modify opencua agent; add comment lines
This commit is contained in:
Xinyuan Wang
2025-07-16 17:53:12 +08:00
committed by GitHub
parent 5e5058c1f2
commit 0f2655249c
4 changed files with 497 additions and 197 deletions

View File

@@ -163,7 +163,8 @@ def run_single_example_opencua(agent, env, example, max_steps, instruction, args
response, actions, info_dict = agent.predict(instruction, obs)
logger.info(f"Got Action: {actions}")
if not actions or len(actions)==0 or actions[0]=="" or actions[0].lower().startswith("error"): # TODO: new added
# Breack if no actions
if not actions or len(actions)==0 or actions[0]=="" or actions[0].lower().startswith("error"):
break
for action in actions: