cua-agent 0.3.1__tar.gz → 0.3.2__tar.gz
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.
- {cua_agent-0.3.1 → cua_agent-0.3.2}/PKG-INFO +1 -1
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/utils.py +14 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/pyproject.toml +3 -3
- {cua_agent-0.3.1 → cua_agent-0.3.2}/README.md +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/agent.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/callbacks.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/experiment.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/factory.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/messages.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/provider_config.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/telemetry.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/bash.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/collection.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/computer.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/edit.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools/manager.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/tools.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/types.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/core/visualization.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/api/client.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/api/logging.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/api_handler.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/callbacks/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/callbacks/manager.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/loop.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/prompts.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/response_handler.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/bash.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/collection.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/computer.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/edit.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/manager.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/tools/run.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/anthropic/types.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/api_handler.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/clients/anthropic.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/clients/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/clients/oaicompat.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/clients/ollama.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/clients/openai.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/clients/utils.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/image_utils.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/loop.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/parser.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/prompts.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/tools/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/tools/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/tools/bash.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/tools/computer.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/tools/manager.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/omni/utils.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/api_handler.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/loop.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/response_handler.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/tools/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/tools/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/tools/computer.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/tools/manager.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/types.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/openai/utils.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/clients/base.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/clients/mlxvlm.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/clients/oaicompat.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/loop.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/prompts.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/tools/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/tools/computer.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/tools/manager.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/providers/uitars/utils.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/telemetry.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/ui/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/ui/__main__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/ui/gradio/__init__.py +0 -0
- {cua_agent-0.3.1 → cua_agent-0.3.2}/agent/ui/gradio/app.py +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:
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "cua-agent"
|
|
9
|
-
version = "0.3.
|
|
9
|
+
version = "0.3.2"
|
|
10
10
|
description = "CUA (Computer Use) Agent for AI-driven computer interaction"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
authors = [
|
|
@@ -112,7 +112,7 @@ target-version = [
|
|
|
112
112
|
|
|
113
113
|
[tool.ruff]
|
|
114
114
|
line-length = 100
|
|
115
|
-
target-version = "0.3.
|
|
115
|
+
target-version = "0.3.2"
|
|
116
116
|
select = [
|
|
117
117
|
"E",
|
|
118
118
|
"F",
|
|
@@ -126,7 +126,7 @@ docstring-code-format = true
|
|
|
126
126
|
|
|
127
127
|
[tool.mypy]
|
|
128
128
|
strict = true
|
|
129
|
-
python_version = "0.3.
|
|
129
|
+
python_version = "0.3.2"
|
|
130
130
|
ignore_missing_imports = true
|
|
131
131
|
disallow_untyped_defs = true
|
|
132
132
|
check_untyped_defs = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|