openadapt-ml 0.1.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openadapt_ml/baselines/__init__.py +121 -0
- openadapt_ml/baselines/adapter.py +185 -0
- openadapt_ml/baselines/cli.py +314 -0
- openadapt_ml/baselines/config.py +448 -0
- openadapt_ml/baselines/parser.py +922 -0
- openadapt_ml/baselines/prompts.py +787 -0
- openadapt_ml/benchmarks/__init__.py +13 -107
- openadapt_ml/benchmarks/agent.py +297 -374
- openadapt_ml/benchmarks/azure.py +62 -24
- openadapt_ml/benchmarks/azure_ops_tracker.py +521 -0
- openadapt_ml/benchmarks/cli.py +1874 -751
- openadapt_ml/benchmarks/trace_export.py +631 -0
- openadapt_ml/benchmarks/viewer.py +1236 -0
- openadapt_ml/benchmarks/vm_monitor.py +1111 -0
- openadapt_ml/benchmarks/waa_deploy/Dockerfile +216 -0
- openadapt_ml/benchmarks/waa_deploy/__init__.py +10 -0
- openadapt_ml/benchmarks/waa_deploy/api_agent.py +540 -0
- openadapt_ml/benchmarks/waa_deploy/start_waa_server.bat +53 -0
- openadapt_ml/cloud/azure_inference.py +3 -5
- openadapt_ml/cloud/lambda_labs.py +722 -307
- openadapt_ml/cloud/local.py +3194 -89
- openadapt_ml/cloud/ssh_tunnel.py +595 -0
- openadapt_ml/datasets/next_action.py +125 -96
- openadapt_ml/evals/grounding.py +32 -9
- openadapt_ml/evals/plot_eval_metrics.py +15 -13
- openadapt_ml/evals/trajectory_matching.py +120 -57
- openadapt_ml/experiments/demo_prompt/__init__.py +19 -0
- openadapt_ml/experiments/demo_prompt/format_demo.py +236 -0
- openadapt_ml/experiments/demo_prompt/results/experiment_20251231_002125.json +83 -0
- openadapt_ml/experiments/demo_prompt/results/experiment_n30_20251231_165958.json +1100 -0
- openadapt_ml/experiments/demo_prompt/results/multistep_20251231_025051.json +182 -0
- openadapt_ml/experiments/demo_prompt/run_experiment.py +541 -0
- openadapt_ml/experiments/representation_shootout/__init__.py +70 -0
- openadapt_ml/experiments/representation_shootout/conditions.py +708 -0
- openadapt_ml/experiments/representation_shootout/config.py +390 -0
- openadapt_ml/experiments/representation_shootout/evaluator.py +659 -0
- openadapt_ml/experiments/representation_shootout/runner.py +687 -0
- openadapt_ml/experiments/waa_demo/__init__.py +10 -0
- openadapt_ml/experiments/waa_demo/demos.py +357 -0
- openadapt_ml/experiments/waa_demo/runner.py +732 -0
- openadapt_ml/experiments/waa_demo/tasks.py +151 -0
- openadapt_ml/export/__init__.py +9 -0
- openadapt_ml/export/__main__.py +6 -0
- openadapt_ml/export/cli.py +89 -0
- openadapt_ml/export/parquet.py +277 -0
- openadapt_ml/grounding/detector.py +18 -14
- openadapt_ml/ingest/__init__.py +11 -10
- openadapt_ml/ingest/capture.py +97 -86
- openadapt_ml/ingest/loader.py +120 -69
- openadapt_ml/ingest/synthetic.py +344 -193
- openadapt_ml/models/api_adapter.py +14 -4
- openadapt_ml/models/base_adapter.py +10 -2
- openadapt_ml/models/providers/__init__.py +288 -0
- openadapt_ml/models/providers/anthropic.py +266 -0
- openadapt_ml/models/providers/base.py +299 -0
- openadapt_ml/models/providers/google.py +376 -0
- openadapt_ml/models/providers/openai.py +342 -0
- openadapt_ml/models/qwen_vl.py +46 -19
- openadapt_ml/perception/__init__.py +35 -0
- openadapt_ml/perception/integration.py +399 -0
- openadapt_ml/retrieval/README.md +226 -0
- openadapt_ml/retrieval/USAGE.md +391 -0
- openadapt_ml/retrieval/__init__.py +91 -0
- openadapt_ml/retrieval/demo_retriever.py +843 -0
- openadapt_ml/retrieval/embeddings.py +630 -0
- openadapt_ml/retrieval/index.py +194 -0
- openadapt_ml/retrieval/retriever.py +162 -0
- openadapt_ml/runtime/__init__.py +50 -0
- openadapt_ml/runtime/policy.py +27 -14
- openadapt_ml/runtime/safety_gate.py +471 -0
- openadapt_ml/schema/__init__.py +113 -0
- openadapt_ml/schema/converters.py +588 -0
- openadapt_ml/schema/episode.py +470 -0
- openadapt_ml/scripts/capture_screenshots.py +530 -0
- openadapt_ml/scripts/compare.py +102 -61
- openadapt_ml/scripts/demo_policy.py +4 -1
- openadapt_ml/scripts/eval_policy.py +19 -14
- openadapt_ml/scripts/make_gif.py +1 -1
- openadapt_ml/scripts/prepare_synthetic.py +16 -17
- openadapt_ml/scripts/train.py +98 -75
- openadapt_ml/segmentation/README.md +920 -0
- openadapt_ml/segmentation/__init__.py +97 -0
- openadapt_ml/segmentation/adapters/__init__.py +5 -0
- openadapt_ml/segmentation/adapters/capture_adapter.py +420 -0
- openadapt_ml/segmentation/annotator.py +610 -0
- openadapt_ml/segmentation/cache.py +290 -0
- openadapt_ml/segmentation/cli.py +674 -0
- openadapt_ml/segmentation/deduplicator.py +656 -0
- openadapt_ml/segmentation/frame_describer.py +788 -0
- openadapt_ml/segmentation/pipeline.py +340 -0
- openadapt_ml/segmentation/schemas.py +622 -0
- openadapt_ml/segmentation/segment_extractor.py +634 -0
- openadapt_ml/training/azure_ops_viewer.py +1097 -0
- openadapt_ml/training/benchmark_viewer.py +3255 -19
- openadapt_ml/training/shared_ui.py +7 -7
- openadapt_ml/training/stub_provider.py +57 -35
- openadapt_ml/training/trainer.py +255 -441
- openadapt_ml/training/trl_trainer.py +403 -0
- openadapt_ml/training/viewer.py +323 -108
- openadapt_ml/training/viewer_components.py +180 -0
- {openadapt_ml-0.1.0.dist-info → openadapt_ml-0.2.1.dist-info}/METADATA +312 -69
- openadapt_ml-0.2.1.dist-info/RECORD +116 -0
- openadapt_ml/benchmarks/base.py +0 -366
- openadapt_ml/benchmarks/data_collection.py +0 -432
- openadapt_ml/benchmarks/runner.py +0 -381
- openadapt_ml/benchmarks/waa.py +0 -704
- openadapt_ml/schemas/__init__.py +0 -53
- openadapt_ml/schemas/sessions.py +0 -122
- openadapt_ml/schemas/validation.py +0 -252
- openadapt_ml-0.1.0.dist-info/RECORD +0 -55
- {openadapt_ml-0.1.0.dist-info → openadapt_ml-0.2.1.dist-info}/WHEEL +0 -0
- {openadapt_ml-0.1.0.dist-info → openadapt_ml-0.2.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": "2025-12-31T02:50:07.863598",
|
|
3
|
+
"provider": "anthropic",
|
|
4
|
+
"max_steps": 5,
|
|
5
|
+
"demo": "DEMONSTRATION:\nGoal: Turn off Night Shift in macOS System Settings\n\nStep 1:\n Screen: Desktop\n Action: CLICK(0.01, 0.01)\n Result: Apple menu opened\n\nStep 2:\n Screen: Apple menu visible\n Action: CLICK(0.05, 0.15)\n Result: System Settings opened\n\nStep 3:\n Screen: System Settings with sidebar\n Action: CLICK(0.12, 0.45)\n Result: Displays panel shown\n\nStep 4:\n Screen: Displays panel\n Action: CLICK(0.75, 0.65)\n Result: Night Shift popup appeared\n\nStep 5:\n Screen: Night Shift popup\n Action: CLICK(0.50, 0.35)\n Result: Schedule set to Off\n\n---",
|
|
6
|
+
"conditions": {
|
|
7
|
+
"zero_shot": {
|
|
8
|
+
"steps": [
|
|
9
|
+
{
|
|
10
|
+
"step": 1,
|
|
11
|
+
"task": "Turn off Night Shift in macOS System Settings. You are at the desktop.",
|
|
12
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_0.png",
|
|
13
|
+
"action_parsed": "CLICK(20, 8)",
|
|
14
|
+
"response": "I need to open System Settings to turn off Night Shift. I'll click on the Apple menu in the menu bar to access it.\n\nACTION: CLICK(20, 8)",
|
|
15
|
+
"error": null,
|
|
16
|
+
"evaluation": {
|
|
17
|
+
"step": 1,
|
|
18
|
+
"action": "CLICK(20, 8)",
|
|
19
|
+
"expected_target": "Apple menu",
|
|
20
|
+
"expected_region": "top-left",
|
|
21
|
+
"correct": true,
|
|
22
|
+
"reason": "Coordinates (0.010, 0.007) in expected region"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"step": 2,
|
|
27
|
+
"task": "Turn off Night Shift. The Apple menu is now open. Select System Settings.",
|
|
28
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_2.png",
|
|
29
|
+
"action_parsed": "CLICK(1193, 8)",
|
|
30
|
+
"response": "The screenshot shows a Terminal window with command output. Looking at the current state, I can see that the Apple menu is mentioned in the goal, but I don't see it clearly in the screenshot. Based on the goal \"Turn off Night Shift\" and the instruction to \"Select System Settings,\" I need to access System Settings.\n\nOn macOS, System Settings (or System Preferences) is typically accessed through the Apple menu in the top-left corner. Since the goal states \"The Apple menu is now open,\" I need to click on \"System Settings\" or \"System Preferences\" from that menu.\n\nLooking at the screen, I would need to click on the System Settings option, which would typically be located in the Apple menu dropdown. However, I don't see the Apple menu clearly open in the screenshot provided. The Terminal window is taking up most of the screen.\n\nLet me click on what would be the System Settings option in the Apple menu, which is typically in the top-left area of the screen.\n\nACTION: CLICK(1193, 8)",
|
|
31
|
+
"error": null,
|
|
32
|
+
"evaluation": {
|
|
33
|
+
"step": 2,
|
|
34
|
+
"action": "CLICK(1193, 8)",
|
|
35
|
+
"expected_target": "System Settings",
|
|
36
|
+
"expected_region": "menu",
|
|
37
|
+
"correct": false,
|
|
38
|
+
"reason": "Coordinates (0.621, 0.007) outside expected region (0-0.15, 0.1-0.3)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"step": 3,
|
|
43
|
+
"task": "Turn off Night Shift. System Settings is open. Navigate to the Displays section.",
|
|
44
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_5.png",
|
|
45
|
+
"action_parsed": "CLICK(1033, 100)",
|
|
46
|
+
"response": "I need to navigate to the Displays section in System Settings to turn off Night Shift. I'll click on the search bar or close button first to dismiss the spotlight search overlay.\n\nACTION: CLICK(1033, 100)",
|
|
47
|
+
"error": null,
|
|
48
|
+
"evaluation": {
|
|
49
|
+
"step": 3,
|
|
50
|
+
"action": "CLICK(1033, 100)",
|
|
51
|
+
"expected_target": "Displays",
|
|
52
|
+
"expected_region": "sidebar",
|
|
53
|
+
"correct": false,
|
|
54
|
+
"reason": "Coordinates (0.538, 0.083) outside expected region (0.05-0.25, 0.3-0.6)"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"step": 4,
|
|
59
|
+
"task": "Turn off Night Shift. You are in the Displays panel. Open the Night Shift settings.",
|
|
60
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_10.png",
|
|
61
|
+
"action_parsed": "CLICK(1310, 565)",
|
|
62
|
+
"response": "I need to turn off Night Shift. Since I'm in the Displays panel, I should look for the Night Shift button. I can see there's a \"Night Shift...\" button at the bottom right of the window.\n\nACTION: CLICK(1310, 565)",
|
|
63
|
+
"error": null,
|
|
64
|
+
"evaluation": {
|
|
65
|
+
"step": 4,
|
|
66
|
+
"action": "CLICK(1310, 565)",
|
|
67
|
+
"expected_target": "Night Shift button",
|
|
68
|
+
"expected_region": "main-panel",
|
|
69
|
+
"correct": false,
|
|
70
|
+
"reason": "Coordinates (0.682, 0.471) outside expected region (0.5-0.9, 0.5-0.8)"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"step": 5,
|
|
75
|
+
"task": "Turn off Night Shift. The Night Shift popup is open. Set the Schedule to Off.",
|
|
76
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_15.png",
|
|
77
|
+
"action_parsed": "CLICK(1248, 315)",
|
|
78
|
+
"response": "I need to turn off Night Shift by setting the Schedule to Off. The Night Shift popup is open and I can see a Schedule dropdown menu that currently shows \"Off\" next to it. I'll click on that dropdown to change the setting.\n\nACTION: CLICK(1248, 315)",
|
|
79
|
+
"error": null,
|
|
80
|
+
"evaluation": {
|
|
81
|
+
"step": 5,
|
|
82
|
+
"action": "CLICK(1248, 315)",
|
|
83
|
+
"expected_target": "Schedule dropdown",
|
|
84
|
+
"expected_region": "popup",
|
|
85
|
+
"correct": true,
|
|
86
|
+
"reason": "Coordinates (0.650, 0.263) in expected region"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"total_correct": 2,
|
|
91
|
+
"total_attempted": 5,
|
|
92
|
+
"accuracy": 0.4
|
|
93
|
+
},
|
|
94
|
+
"with_demo": {
|
|
95
|
+
"steps": [
|
|
96
|
+
{
|
|
97
|
+
"step": 1,
|
|
98
|
+
"task": "Turn off Night Shift in macOS System Settings. You are at the desktop.",
|
|
99
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_0.png",
|
|
100
|
+
"action_parsed": "CLICK(20, 8)",
|
|
101
|
+
"response": "I need to turn off Night Shift in macOS System Settings. The first step is to access the Apple menu to get to System Settings.\n\nACTION: CLICK(20, 8)",
|
|
102
|
+
"error": null,
|
|
103
|
+
"evaluation": {
|
|
104
|
+
"step": 1,
|
|
105
|
+
"action": "CLICK(20, 8)",
|
|
106
|
+
"expected_target": "Apple menu",
|
|
107
|
+
"expected_region": "top-left",
|
|
108
|
+
"correct": true,
|
|
109
|
+
"reason": "Coordinates (0.010, 0.007) in expected region"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"step": 2,
|
|
114
|
+
"task": "Turn off Night Shift. The Apple menu is now open. Select System Settings.",
|
|
115
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_2.png",
|
|
116
|
+
"action_parsed": "CLICK(20, 8)",
|
|
117
|
+
"response": "I need to analyze the current screen and determine the next action to turn off Night Shift.\n\nLooking at the screen, I can see this is a Terminal window, not the Apple menu. The task says \"The Apple menu is now open\" but that's not what I see. However, according to the demonstration steps, after the Apple menu is opened, I need to click on System Settings.\n\nBut since I don't see the Apple menu open in the current screenshot, I need to first open the Apple menu by clicking on the Apple logo in the top-left corner.\n\nACTION: CLICK(20, 8)",
|
|
118
|
+
"error": null,
|
|
119
|
+
"evaluation": {
|
|
120
|
+
"step": 2,
|
|
121
|
+
"action": "CLICK(20, 8)",
|
|
122
|
+
"expected_target": "System Settings",
|
|
123
|
+
"expected_region": "menu",
|
|
124
|
+
"correct": false,
|
|
125
|
+
"reason": "Coordinates (0.010, 0.007) outside expected region (0-0.15, 0.1-0.3)"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"step": 3,
|
|
130
|
+
"task": "Turn off Night Shift. System Settings is open. Navigate to the Displays section.",
|
|
131
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_5.png",
|
|
132
|
+
"action_parsed": "CLICK(760, 100)",
|
|
133
|
+
"response": "I need to navigate to the Displays section in System Settings. Since System Settings is already open and I can see a Spotlight search field with \"settin\" typed (showing System Settings.app), I should click on it to open System Settings and then find the Displays section.\n\nACTION: CLICK(760, 100)",
|
|
134
|
+
"error": null,
|
|
135
|
+
"evaluation": {
|
|
136
|
+
"step": 3,
|
|
137
|
+
"action": "CLICK(760, 100)",
|
|
138
|
+
"expected_target": "Displays",
|
|
139
|
+
"expected_region": "sidebar",
|
|
140
|
+
"correct": false,
|
|
141
|
+
"reason": "Coordinates (0.396, 0.083) outside expected region (0.05-0.25, 0.3-0.6)"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"step": 4,
|
|
146
|
+
"task": "Turn off Night Shift. You are in the Displays panel. Open the Night Shift settings.",
|
|
147
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_10.png",
|
|
148
|
+
"action_parsed": "CLICK(1256, 343)",
|
|
149
|
+
"response": "I need to open the Night Shift settings. Looking at the current screen, I can see the Night Shift dialog is already open with various settings visible. Since the goal is to turn off Night Shift and I'm being asked to open the Night Shift settings first, I need to identify what action to take. However, the Night Shift settings panel is already open on the screen. The next step according to the demonstration would be to turn off Night Shift by interacting with the schedule setting.\n\nACTION: CLICK(1256, 343)",
|
|
150
|
+
"error": null,
|
|
151
|
+
"evaluation": {
|
|
152
|
+
"step": 4,
|
|
153
|
+
"action": "CLICK(1256, 343)",
|
|
154
|
+
"expected_target": "Night Shift button",
|
|
155
|
+
"expected_region": "main-panel",
|
|
156
|
+
"correct": false,
|
|
157
|
+
"reason": "Coordinates (0.654, 0.286) outside expected region (0.5-0.9, 0.5-0.8)"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"step": 5,
|
|
162
|
+
"task": "Turn off Night Shift. The Night Shift popup is open. Set the Schedule to Off.",
|
|
163
|
+
"screenshot": "/Users/abrichr/oa/src/openadapt-capture/turn-off-nightshift/screenshots/capture_31807990_step_15.png",
|
|
164
|
+
"action_parsed": "CLICK(1249, 315)",
|
|
165
|
+
"response": "I need to analyze the current screen state and determine the next action to turn off Night Shift.\n\nLooking at the screenshot, I can see the Night Shift popup is already open. The Schedule dropdown is visible showing \"Off\" option. The \"Turn on until tomorrow\" checkbox is currently unchecked based on the interface state.\n\nSince the goal is to set the Schedule to \"Off\" and the interface shows a Schedule dropdown, I should click on the Schedule dropdown to ensure it's set to \"Off\".\n\nACTION: CLICK(1249, 315)",
|
|
166
|
+
"error": null,
|
|
167
|
+
"evaluation": {
|
|
168
|
+
"step": 5,
|
|
169
|
+
"action": "CLICK(1249, 315)",
|
|
170
|
+
"expected_target": "Schedule dropdown",
|
|
171
|
+
"expected_region": "popup",
|
|
172
|
+
"correct": true,
|
|
173
|
+
"reason": "Coordinates (0.651, 0.263) in expected region"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"total_correct": 2,
|
|
178
|
+
"total_attempted": 5,
|
|
179
|
+
"accuracy": 0.4
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|