cua-agent 0.3.1__py3-none-any.whl → 0.3.2__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/anthropic/utils.py +14 -0
- {cua_agent-0.3.1.dist-info → cua_agent-0.3.2.dist-info}/METADATA +1 -1
- {cua_agent-0.3.1.dist-info → cua_agent-0.3.2.dist-info}/RECORD +5 -5
- {cua_agent-0.3.1.dist-info → cua_agent-0.3.2.dist-info}/WHEEL +1 -1
- {cua_agent-0.3.1.dist-info → cua_agent-0.3.2.dist-info}/entry_points.txt +0 -0
|
@@ -350,6 +350,20 @@ async def to_agent_response_format(
|
|
|
350
350
|
},
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
+
if response.usage:
|
|
354
|
+
standard_response["usage"] = {
|
|
355
|
+
"input_tokens": response.usage.input_tokens,
|
|
356
|
+
"input_tokens_details": {
|
|
357
|
+
"cached_tokens": response.usage.cache_creation_input_tokens,
|
|
358
|
+
},
|
|
359
|
+
"output_tokens": response.usage.output_tokens,
|
|
360
|
+
"output_tokens_details": {
|
|
361
|
+
"reasoning_tokens": 0
|
|
362
|
+
},
|
|
363
|
+
"total_tokens": response.usage.input_tokens + response.usage.output_tokens,
|
|
364
|
+
**dict(response.usage),
|
|
365
|
+
}
|
|
366
|
+
|
|
353
367
|
# Add tool calls if present
|
|
354
368
|
tool_calls = []
|
|
355
369
|
for block in response.content:
|
|
@@ -37,7 +37,7 @@ agent/providers/anthropic/tools/edit.py,sha256=5XzzUhXKzGWxhygIiHw51GC7lfOB97ipw
|
|
|
37
37
|
agent/providers/anthropic/tools/manager.py,sha256=yNvgTkfEqnOz5isDF0RxvmBMZB0uh2PipFEH-PUXpoY,2020
|
|
38
38
|
agent/providers/anthropic/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
|
|
39
39
|
agent/providers/anthropic/types.py,sha256=SF00kOMC1ui8j9Ah56KaeiR2cL394qCHjFIsBpXxt5w,421
|
|
40
|
-
agent/providers/anthropic/utils.py,sha256=
|
|
40
|
+
agent/providers/anthropic/utils.py,sha256=OWPna1fMMnf9PX4TjYCNVd2l35FAU2usbHSef-0_4iI,14861
|
|
41
41
|
agent/providers/omni/__init__.py,sha256=5ix67iJdtQNGuGJEjEOF65PwFWO7vdo1QlXD28bRbW4,179
|
|
42
42
|
agent/providers/omni/api_handler.py,sha256=7CpD43lYAqTyNKWfrD8XcM9ekbajqKCTH9p0TWtEQyg,1163
|
|
43
43
|
agent/providers/omni/clients/anthropic.py,sha256=nC_lj3UwrLqx9TIew58yxLqKwrH1_LwJD6EqVSEfp3g,3670
|
|
@@ -81,7 +81,7 @@ agent/ui/__init__.py,sha256=ohhxJLBin6k1hl5sKcmBST8mgh23WXgAXz3pN4f470E,45
|
|
|
81
81
|
agent/ui/__main__.py,sha256=Ah2575SAf7hI8QCsCKx-W4A6QcFsnFPdqMArmJ4H9ic,299
|
|
82
82
|
agent/ui/gradio/__init__.py,sha256=ANKZhv1HqsLheWbLVBlyRQ7Q5qGeXuPi5jDs8vu-ZMo,579
|
|
83
83
|
agent/ui/gradio/app.py,sha256=7T0IDS9jxMKf9a6KcxdGLmsIEkJ65n0rkCJMILQv_1Q,70605
|
|
84
|
-
cua_agent-0.3.
|
|
85
|
-
cua_agent-0.3.
|
|
86
|
-
cua_agent-0.3.
|
|
87
|
-
cua_agent-0.3.
|
|
84
|
+
cua_agent-0.3.2.dist-info/METADATA,sha256=cc41oV3Sc1yLxoaylRGZ76dACR59tXwDWwz0QA2Ko0w,12403
|
|
85
|
+
cua_agent-0.3.2.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
86
|
+
cua_agent-0.3.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
87
|
+
cua_agent-0.3.2.dist-info/RECORD,,
|
|
File without changes
|