-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema_for_extraction.json
More file actions
185 lines (185 loc) · 4.54 KB
/
schema_for_extraction.json
File metadata and controls
185 lines (185 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
"type": "object",
"description": "执行操作并决定当前任务状态",
"additionalProperties": false,
"properties": {
"thought": {
"type": "string"
},
"POINT": {
"description": "点击屏幕上的指定位置",
"$ref": "#/$defs/Location"
},
"to": {
"description": "移动,组合手势参数",
"oneOf": [
{
"enum": [
"up",
"down",
"left",
"right"
],
"description": "结合 POINT 操作,实现向上下左右滑动"
},
{
"$ref": "#/$defs/Location",
"description": "移动到某个位置"
}
]
},
"duration": {
"type": "integer",
"description": "动作执行的时间或等待时间,毫秒",
"minimum": 0,
"default": 200
},
"PRESS": {
"type": "string",
"description": "触发特殊按键,HOME为回到主页按钮,BACK为返回按钮,ENTER为回车按钮,APPSELECT为查看已打开APP列表按钮",
"enum": [
"HOME",
"BACK",
"ENTER",
"APPSELECT"
]
},
"TYPE": {
"type": "string",
"description": "输入文本"
},
"DEEP_LINK": {
"type": "null",
"description": "跳转到最近打开的 APP"
},
"CLEAR": {
"type": "null",
"description": "清空输入框的内容"
},
"STATUS": {
"type": "string",
"description": "当前任务的状态。特殊情况:satisfied,无需操作;impossible,任务无法完成;interrupt,任务中断;need_feedback,需要用户反馈;",
"enum": [
"continue",
"start",
"finish",
"satisfied",
"impossible",
"interrupt",
"need_feedback"
],
"default": "continue"
}
},
"$defs": {
"Location": {
"type": "array",
"description": "坐标为相对于屏幕左上角位原点的相对位置,并且按照宽高比例缩放到 0~1000,数组第一个元素为横坐标 x,第二个元素为纵坐标 y",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"minItems": 2,
"maxItems": 2
}
},
"allOf": [
{
"if": {
"required": ["to"]
},
"then": {
"required": ["POINT"]
}
},
{
"if": {
"anyOf": [
{ "not": { "required": ["STATUS"] } },
{ "properties": { "STATUS": { "enum": ["continue", "start"] } } }
]
},
"then": {
"anyOf": [
{ "required": ["POINT"] },
{ "required": ["PRESS"] },
{ "required": ["TYPE"] },
{ "required": ["DEEP_LINK"] },
{ "required": ["CLEAR"] },
{ "required": ["duration"] }
]
}
},
{
"oneOf": [
{
"required": ["POINT"],
"not": {
"anyOf": [
{ "required": ["PRESS"] },
{ "required": ["TYPE"] },
{ "required": ["DEEP_LINK"] },
{ "required": ["CLEAR"] }
]
}
},
{
"required": ["PRESS"],
"not": {
"anyOf": [
{ "required": ["POINT"] },
{ "required": ["TYPE"] },
{ "required": ["DEEP_LINK"] },
{ "required": ["CLEAR"] }
]
}
},
{
"required": ["TYPE"],
"not": {
"anyOf": [
{ "required": ["POINT"] },
{ "required": ["PRESS"] },
{ "required": ["DEEP_LINK"] },
{ "required": ["CLEAR"] }
]
}
},
{
"required": ["DEEP_LINK"],
"not": {
"anyOf": [
{ "required": ["POINT"] },
{ "required": ["PRESS"] },
{ "required": ["TYPE"] },
{ "required": ["CLEAR"] }
]
}
},
{
"required": ["CLEAR"],
"not": {
"anyOf": [
{ "required": ["POINT"] },
{ "required": ["PRESS"] },
{ "required": ["TYPE"] },
{ "required": ["DEEP_LINK"] }
]
}
},
{
"not": {
"anyOf": [
{ "required": ["POINT"] },
{ "required": ["PRESS"] },
{ "required": ["TYPE"] },
{ "required": ["DEEP_LINK"] },
{ "required": ["CLEAR"] }
]
}
}
]
}
]
}