cua-agent 0.1.32__py3-none-any.whl → 0.1.33__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.
Potentially problematic release.
This version of cua-agent might be problematic. Click here for more details.
- agent/providers/openai/loop.py +3 -10
- {cua_agent-0.1.32.dist-info → cua_agent-0.1.33.dist-info}/METADATA +1 -1
- {cua_agent-0.1.32.dist-info → cua_agent-0.1.33.dist-info}/RECORD +5 -5
- {cua_agent-0.1.32.dist-info → cua_agent-0.1.33.dist-info}/WHEEL +0 -0
- {cua_agent-0.1.32.dist-info → cua_agent-0.1.33.dist-info}/entry_points.txt +0 -0
agent/providers/openai/loop.py
CHANGED
|
@@ -201,16 +201,7 @@ class OpenAILoop(BaseLoop):
|
|
|
201
201
|
|
|
202
202
|
# Emit screenshot callbacks
|
|
203
203
|
await self.handle_screenshot(screenshot_base64, action_type="initial_state")
|
|
204
|
-
|
|
205
|
-
# Save screenshot if requested
|
|
206
|
-
if self.save_trajectory:
|
|
207
|
-
# Ensure screenshot_base64 is a string
|
|
208
|
-
if not isinstance(screenshot_base64, str):
|
|
209
|
-
logger.warning(
|
|
210
|
-
"Converting non-string screenshot_base64 to string for _save_screenshot"
|
|
211
|
-
)
|
|
212
|
-
self._save_screenshot(screenshot_base64, action_type="state")
|
|
213
|
-
logger.info("Screenshot saved to trajectory")
|
|
204
|
+
self._save_screenshot(screenshot_base64, action_type="state")
|
|
214
205
|
|
|
215
206
|
# First add any existing user messages that were passed to run()
|
|
216
207
|
user_query = None
|
|
@@ -351,6 +342,7 @@ class OpenAILoop(BaseLoop):
|
|
|
351
342
|
# Process screenshot through hooks
|
|
352
343
|
action_type = f"after_{action.get('type', 'action')}"
|
|
353
344
|
await self.handle_screenshot(screenshot_base64, action_type=action_type)
|
|
345
|
+
self._save_screenshot(screenshot_base64, action_type=action_type)
|
|
354
346
|
|
|
355
347
|
# Create computer_call_output
|
|
356
348
|
computer_call_output = {
|
|
@@ -397,6 +389,7 @@ class OpenAILoop(BaseLoop):
|
|
|
397
389
|
|
|
398
390
|
# Process the response
|
|
399
391
|
# await self.response_handler.process_response(response, queue)
|
|
392
|
+
self._log_api_call("agent_response", request=None, response=response)
|
|
400
393
|
await queue.put(response)
|
|
401
394
|
except Exception as e:
|
|
402
395
|
logger.error(f"Error executing computer action: {str(e)}")
|
|
@@ -58,7 +58,7 @@ agent/providers/omni/tools/manager.py,sha256=UhtasaxGcmkxtz-bP1UJ1a4xdYnD3Cv8Pbt
|
|
|
58
58
|
agent/providers/omni/utils.py,sha256=Ikp6ONL1HO637o3KDtv5yv6q-4uIWAzMSQDvGetWXC8,8724
|
|
59
59
|
agent/providers/openai/__init__.py,sha256=8DS6YNZp42NLCacwXsfRaghyczaOCVovX8TgzXUZf_o,165
|
|
60
60
|
agent/providers/openai/api_handler.py,sha256=L1K56dR1j4JsX1sX4OFYeKoCUMM25Fwj2y9nqv8oOhw,17736
|
|
61
|
-
agent/providers/openai/loop.py,sha256=
|
|
61
|
+
agent/providers/openai/loop.py,sha256=yJrFBy6uTlYf-MMcq_Q-EKQxbdBrEueJIeMhVo5OV1E,19344
|
|
62
62
|
agent/providers/openai/response_handler.py,sha256=K8v_92uSr9R74Y5INY4naeEZZZm35CLIl4h74MBZhsw,7953
|
|
63
63
|
agent/providers/openai/tools/__init__.py,sha256=-KbHMWcd2OVTk5RYQ3ACBEMygwbH-VW6n_98p0lwM4A,344
|
|
64
64
|
agent/providers/openai/tools/base.py,sha256=Np_BC9Cm6TslK99etE9hVTtsBlcEaGhoNCK3NXdB_Lw,2474
|
|
@@ -79,7 +79,7 @@ agent/telemetry.py,sha256=pVGxbj0ewnvq4EGj28CydN4a1iOfvZR_XKL3vIOqhOM,390
|
|
|
79
79
|
agent/ui/__init__.py,sha256=ohhxJLBin6k1hl5sKcmBST8mgh23WXgAXz3pN4f470E,45
|
|
80
80
|
agent/ui/gradio/__init__.py,sha256=ANKZhv1HqsLheWbLVBlyRQ7Q5qGeXuPi5jDs8vu-ZMo,579
|
|
81
81
|
agent/ui/gradio/app.py,sha256=C38XbAAqBIsIfSh-3eF_IqHBEguRSfaMycNX8jRXTjE,41060
|
|
82
|
-
cua_agent-0.1.
|
|
83
|
-
cua_agent-0.1.
|
|
84
|
-
cua_agent-0.1.
|
|
85
|
-
cua_agent-0.1.
|
|
82
|
+
cua_agent-0.1.33.dist-info/METADATA,sha256=qJJM-IExLcghj3mc18IX_zaMI7aAI9L4hWO0wHGPtQU,11335
|
|
83
|
+
cua_agent-0.1.33.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
84
|
+
cua_agent-0.1.33.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
85
|
+
cua_agent-0.1.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|