91e75e620b
CI: cua-driver distro-compat matrix / Resolve release version (push) Waiting to run
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / Distro compat summary (push) Blocked by required conditions
CI: Nix Linux Rust source / Nix / compositor build (push) Waiting to run
CI: Nix Linux Rust source / Nix / driver package (push) Waiting to run
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Waiting to run
CI: Rust Linux unit / Rust Linux unit and compile (push) Waiting to run
CI: Rust Windows unit / Rust Windows unit and compile (push) Waiting to run
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Waiting to run
CD: Docs MCP Server / build (linux/amd64) (push) Waiting to run
CD: Docs MCP Server / build (linux/arm64) (push) Waiting to run
CD: Docs MCP Server / merge (push) Blocked by required conditions
Cua Agent Test
Simple test for Cua ComputerAgent SDK with mock computer.
Run Test
python tests/agent_loop_testing/agent_test.py --model anthropic/claude-sonnet-4-20250514
What It Does
- Tests real Cua ComputerAgent SDK
- Uses mock computer (only screenshots, no real actions)
- Agent tries to "Open Safari browser"
- Runs up to 5 iterations
- Shows agent responses and tool calls
What Passes ✅
- Agent initializes
- Takes screenshots
- Analyzes images
- Makes tool calls
- Runs multiple iterations
What Fails ❌
- Missing dependencies
- Invalid API keys
- Agent crashes
- Import errors
Install
pip install -e libs/python/agent -e libs/python/computer
export ANTHROPIC_API_KEY="your-key"
Example Output
🤖 Testing Cua Agent: anthropic/claude-sonnet-4-20250514
==================================================
✅ Cua Agent created
✅ Mock computer ready
🚀 Running agent...
Iteration 1:
Agent: I'll click on Safari to open it.
Tool: click {'x': 125, 'y': 975}
Iteration 2:
Agent: Safari didn't open, let me try again.
Tool: click {'x': 125, 'y': 975}
Iteration 3:
Agent: This appears to be a static test environment.
🏁 Stopping after 5 iterations (safety limit)
==================================================
🎉 TEST COMPLETE!
==================================================
✅ Model: anthropic/claude-sonnet-4-20250514
✅ Iterations: 3
✅ Screenshots: 3
✅ Agent executed successfully