@qwen-code/arena-agent 0.0.4 → 0.0.5

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.
package/dist/types.d.ts CHANGED
@@ -31,11 +31,19 @@ export interface MultimodalUserMessage {
31
31
  content: Array<TextContentPart | ImageContentPart>;
32
32
  }
33
33
  export type UserTurnMessage = UserMessage | MultimodalUserMessage;
34
+ export interface ModelUsage {
35
+ prompt_tokens?: number;
36
+ completion_tokens?: number;
37
+ total_tokens?: number;
38
+ [key: string]: unknown;
39
+ }
34
40
  export interface AssistantMessage {
35
41
  role: "assistant";
36
42
  content: string;
37
43
  reasoning_content: string;
38
44
  tool_calls?: ToolCall[];
45
+ usage?: ModelUsage;
46
+ reasoning_details?: Array<Record<string, unknown>>;
39
47
  }
40
48
  export interface ToolMessage {
41
49
  role: "tool";
@@ -87,6 +95,8 @@ export interface ModelChunk {
87
95
  delta?: ModelDelta;
88
96
  finish_reason?: string | null;
89
97
  }>;
98
+ usage?: ModelUsage | null;
99
+ reasoning_details?: Array<Record<string, unknown>>;
90
100
  }
91
101
  export interface ModelRequest {
92
102
  model: string;
@@ -124,6 +134,7 @@ export interface AgentEvent {
124
134
  status?: string;
125
135
  error?: string;
126
136
  attempt?: number;
137
+ usage?: ModelUsage;
127
138
  }
128
139
  export interface QuestionOption {
129
140
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/arena-agent",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A TypeScript CodeAgent harness reconstructed from Arena message and tool traces.",
5
5
  "type": "module",
6
6
  "types": "./dist/sdk.d.ts",