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.

Fixed TS types

Dillon DuPont56dfbd0dc48a
diff --git a/libs/typescript/agent/README.md b/libs/typescript/agent/README.md
index d07f869c7b..a59ddfda85 100644
--- a/libs/typescript/agent/README.md
+++ b/libs/typescript/agent/README.md
@@ -142,13 +142,26 @@ interface AgentRequest {
```typescript
interface AgentResponse {
- success: boolean;
- result?: any;
- model: string;
- error?: string;
+ output: AgentMessage[];
+ usage: Usage;
+}
+
+interface Usage {
+ prompt_tokens: number;
+ completion_tokens: number;
+ total_tokens: number;
+ response_cost: number;
}
```
+The `output` array contains the conversation history including:
+- User messages
+- Agent reasoning/thinking
+- Computer actions and their results
+- Final agent responses
+
+The `usage` object provides token counts and cost information for the request.
+
## Connection Types
### HTTP/HTTPS