clerk-sdk 0.4.7__py3-none-any.whl → 0.4.8__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.
- clerk/gui_automation/client.py +10 -10
- {clerk_sdk-0.4.7.dist-info → clerk_sdk-0.4.8.dist-info}/METADATA +1 -1
- {clerk_sdk-0.4.7.dist-info → clerk_sdk-0.4.8.dist-info}/RECORD +6 -6
- {clerk_sdk-0.4.7.dist-info → clerk_sdk-0.4.8.dist-info}/WHEEL +0 -0
- {clerk_sdk-0.4.7.dist-info → clerk_sdk-0.4.8.dist-info}/licenses/LICENSE +0 -0
- {clerk_sdk-0.4.7.dist-info → clerk_sdk-0.4.8.dist-info}/top_level.txt +0 -0
clerk/gui_automation/client.py
CHANGED
|
@@ -27,7 +27,7 @@ class RPAClerk(BaseClerk):
|
|
|
27
27
|
if res.data[0] is None: # type: ignore
|
|
28
28
|
raise NoClientsAvailable()
|
|
29
29
|
|
|
30
|
-
return RemoteDevice(
|
|
30
|
+
return RemoteDevice.model_validate(res.data[0])
|
|
31
31
|
|
|
32
32
|
def deallocate_remote_device(
|
|
33
33
|
self,
|
|
@@ -45,17 +45,17 @@ class RPAClerk(BaseClerk):
|
|
|
45
45
|
res = self.post_request(endpoint=endpoint, json=payload)
|
|
46
46
|
if res.data[0] is None: # type: ignore
|
|
47
47
|
raise RuntimeError("No coordinates found in the response.")
|
|
48
|
-
return Coords(
|
|
48
|
+
return Coords.model_validate(res.data[0])
|
|
49
49
|
|
|
50
50
|
def create_ui_operator_task(self, payload: Dict[str, Any]) -> UiOperatorTask:
|
|
51
51
|
endpoint = "/ui_operator"
|
|
52
52
|
res = self.post_request(endpoint=endpoint, json=payload)
|
|
53
|
-
return UiOperatorTask(
|
|
53
|
+
return UiOperatorTask.model_validate(res.data[0])
|
|
54
54
|
|
|
55
55
|
def get_ui_operator_task(self, id: str) -> UiOperatorTask:
|
|
56
56
|
endpoint = "/ui_operator"
|
|
57
57
|
res = self.get_request(endpoint=endpoint, params={"task_id": id})
|
|
58
|
-
return UiOperatorTask(
|
|
58
|
+
return UiOperatorTask.model_validate(res.data[0])
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
class GUIVisionClerk(BaseClerk):
|
|
@@ -71,7 +71,7 @@ class GUIVisionClerk(BaseClerk):
|
|
|
71
71
|
"target_prompt": target_prompt,
|
|
72
72
|
},
|
|
73
73
|
)
|
|
74
|
-
return TargetWithAnchor(
|
|
74
|
+
return TargetWithAnchor.model_validate(res.data[0])
|
|
75
75
|
|
|
76
76
|
def verify_state(
|
|
77
77
|
self, screen_b64: str, use_ocr: bool, possible_states: States
|
|
@@ -86,7 +86,7 @@ class GUIVisionClerk(BaseClerk):
|
|
|
86
86
|
},
|
|
87
87
|
)
|
|
88
88
|
|
|
89
|
-
return BaseState(
|
|
89
|
+
return BaseState.model_validate(res.data[0])
|
|
90
90
|
|
|
91
91
|
def answer(
|
|
92
92
|
self,
|
|
@@ -106,7 +106,7 @@ class GUIVisionClerk(BaseClerk):
|
|
|
106
106
|
},
|
|
107
107
|
)
|
|
108
108
|
|
|
109
|
-
return output_model.model_validate(
|
|
109
|
+
return output_model.model_validate(res.data[0])
|
|
110
110
|
|
|
111
111
|
def classify_state(
|
|
112
112
|
self, screen_b64: str, use_ocr: bool, possible_states: List[Dict[str, str]]
|
|
@@ -121,7 +121,7 @@ class GUIVisionClerk(BaseClerk):
|
|
|
121
121
|
},
|
|
122
122
|
)
|
|
123
123
|
|
|
124
|
-
return BaseState(
|
|
124
|
+
return BaseState.model_validate(res.data[0])
|
|
125
125
|
|
|
126
126
|
def write_action_string(
|
|
127
127
|
self, screen_b64: str, use_ocr: bool, action_prompt: str
|
|
@@ -136,7 +136,7 @@ class GUIVisionClerk(BaseClerk):
|
|
|
136
136
|
},
|
|
137
137
|
)
|
|
138
138
|
|
|
139
|
-
return ActionString(
|
|
139
|
+
return ActionString.model_validate(res.data[0])
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
class CourseCorrectorClerk(BaseClerk):
|
|
@@ -160,4 +160,4 @@ class CourseCorrectorClerk(BaseClerk):
|
|
|
160
160
|
},
|
|
161
161
|
)
|
|
162
162
|
|
|
163
|
-
return ActionString(
|
|
163
|
+
return ActionString.model_validate(res.data[0])
|
|
@@ -8,7 +8,7 @@ clerk/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
8
8
|
clerk/exceptions/exceptions.py,sha256=gSCma06b6W6c0NrA2rhzd5YjFhZGa6caShX07lo-_3E,1291
|
|
9
9
|
clerk/exceptions/remote_device.py,sha256=R0Vfmk8ejibEFeV29A8Vqst2YA6yxdqEX9lP5wWubgM,134
|
|
10
10
|
clerk/gui_automation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
clerk/gui_automation/client.py,sha256=
|
|
11
|
+
clerk/gui_automation/client.py,sha256=V5ytb4_rXy4WznJWmUcDfdTCG6PXKsIJqAgyJ7Qis8M,5151
|
|
12
12
|
clerk/gui_automation/action_model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
clerk/gui_automation/action_model/model.py,sha256=yzaCyEMOH3YMkPBf6IwUMuu69-xyf78HzmthiewgWQY,3811
|
|
14
14
|
clerk/gui_automation/action_model/utils.py,sha256=xzFxgN-bTK6HKGS7J-esQZ-ePj_yG72T-2ZVhcWvKjw,798
|
|
@@ -46,8 +46,8 @@ clerk/models/ui_operator.py,sha256=mKTJUFZgv7PeEt5oys28HVZxHOJsofmRQOcRpqj0dbU,2
|
|
|
46
46
|
clerk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
clerk/utils/logger.py,sha256=NrMIlJfVmRjjRw_N_Jngkl0qqv7btXUbg5wxcRmFEH4,3800
|
|
48
48
|
clerk/utils/save_artifact.py,sha256=94aYkYNVGcSUaSWZmdjiY6Oc-3yCKb2XWCZ56IAXQqk,1158
|
|
49
|
-
clerk_sdk-0.4.
|
|
50
|
-
clerk_sdk-0.4.
|
|
51
|
-
clerk_sdk-0.4.
|
|
52
|
-
clerk_sdk-0.4.
|
|
53
|
-
clerk_sdk-0.4.
|
|
49
|
+
clerk_sdk-0.4.8.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
|
|
50
|
+
clerk_sdk-0.4.8.dist-info/METADATA,sha256=SFnezCqINhEKmWW5l_QzEoBho1pJ1myTFxiud1o5Auo,9936
|
|
51
|
+
clerk_sdk-0.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
52
|
+
clerk_sdk-0.4.8.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
|
|
53
|
+
clerk_sdk-0.4.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|