chore: import upstream snapshot with attribution
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
# Cua Agent Test
|
||||
|
||||
Simple test for Cua ComputerAgent SDK with mock computer.
|
||||
|
||||
## Run Test
|
||||
|
||||
```bash
|
||||
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
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user