Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

1.8 KB
Raw Blame
{
  "id": "82bc8d6a-36eb-4d2d-8801-ef714fb1e55a-wos",
  "snapshot": "chrome",
  "instruction": "Look up a flight from Mumbai (BOM) to Stockholm (STO) that departs next Monday.",
  "_comments": "made task more specific since evaluator is checking for STO and Stockholm has more than 1 destination option; original task did not specify return date but seems to score regardless of one-way or any return date; additionally, the task does not account for the option if no flights are available",
  "source": "test_task_1",
  "config": [
    {
      "type": "launch",
      "parameters": {
        "command": [
          "google-chrome",
          "--remote-debugging-port=1337",
          "--force-renderer-accessibility"
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": ["socat", "tcp-listen:9222,fork", "tcp:localhost:1337"]
      }
    },
    {
      "type": "chrome_open_tabs",
      "parameters": {
        "urls_to_open": ["https://www.qatarairways.com/en-hk/homepage.html"]
      }
    },
    {
      "type": "activate_window",
      "parameters": {
        "window_name": "Google Chrome"
      }
    }
  ],
  "trajectory": "trajectories\\",
  "related_apps": ["chrome"],
  "evaluator": {
    "func": "check_direct_json_object",
    "result": {
      "type": "active_tab_url_parse",
      "goto_prefix": "https://www.",
      "parse_keys": ["fromStation", "toStation", "departing"],
      "replace": {
        "departing": "time"
      }
    },
    "expected": {
      "type": "rule_relativeTime",
      "rules": {
        "relativeTime": {
          "from": "next Monday"
        },
        "expected": {
          "fromStation": "BOM",
          "toStation": "STO",
          "time": "{Year}-{Month0D}-{Day0D}"
        }
      }
    }
  }
}