Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Updated example

Dillon DuPont829fde53ba8e
diff --git a/libs/typescript/agent/README.md b/libs/typescript/agent/README.md
index 36dc89c952..d07f869c7b 100644
--- a/libs/typescript/agent/README.md
+++ b/libs/typescript/agent/README.md
@@ -31,7 +31,7 @@ const response = await client.responses.create({
input: "Write a one-sentence bedtime story about a unicorn."
});
-console.log(response.result);
+console.log(response.output);
```
### Multi-modal Requests
@@ -169,25 +169,6 @@ const client = new AgentClient("peer://agent-proxy-peer-id");
The client uses PeerJS with default configuration for peer connections.
-## Error Handling
-
-```typescript
-try {
- const response = await client.responses.create({
- model: "anthropic/claude-3-5-sonnet-20241022",
- input: "Hello!"
- });
-
- if (response.success) {
- console.log(response.result);
- } else {
- console.error("Agent error:", response.error);
- }
-} catch (error) {
- console.error("Connection error:", error.message);
-}
-```
-
## License
MIT