Skip to content

Commit ee2920b

Browse files
committed
update rdm
1 parent 47e532e commit ee2920b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ You can also pin specific versions with full model names (`claude-opus-4-6`, `cl
316316
{
317317
"role": "tool_result",
318318
"content": [
319-
{ "type": "tool_result", "tool_use_id": "toolu_abc", "is_error": false, "content": "mothership" }
319+
{ "type": "toolResult", "toolUseId": "toolu_abc", "isError": false, "content": "mothership" }
320320
]
321321
},
322322
{
@@ -326,15 +326,15 @@ You can also pin specific versions with full model names (`claude-opus-4-6`, `cl
326326
]
327327
}
328328
],
329-
"system": { "session_id": "...", "model": "claude-opus-4-6", "cwd": "/workspace", "tools": ["Bash", "Read", ...] },
329+
"system": { "sessionId": "...", "model": "claude-opus-4-6", "cwd": "/workspace", "tools": ["Bash", "Read", ...] },
330330
"numTurns": 2,
331331
"durationMs": 10600,
332332
"totalCostUsd": 0.049,
333333
"sessionId": "..."
334334
}
335335
```
336336

337-
**`stream-json`** — NDJSON stream, one event per line. Event types: `system` (init), `assistant` (text/tool_use), `user` (tool results), `rate_limit_event`, `result` (final summary with cost). A typical multi-step run: `system` → (`assistant``user`) × N → `result`.
337+
**`stream-json`** — NDJSON stream, one event per line. All keys normalized to camelCase. Event types: `system` (init), `assistant` (text/tool_use), `user` (tool results), `rateLimitEvent`, `result` (final summary with cost). A typical multi-step run: `system` → (`assistant``user`) × N → `result`.
338338

339339
<details>
340340
<summary>Full stream-json event examples</summary>
@@ -346,7 +346,7 @@ You can also pin specific versions with full model names (`claude-opus-4-6`, `cl
346346
"type": "system",
347347
"subtype": "init",
348348
"cwd": "/your/project",
349-
"session_id": "...",
349+
"sessionId": "...",
350350
"tools": ["Bash", "Read", "Write", "Glob", "Grep"],
351351
"model": "claude-opus-4-6",
352352
"permissionMode": "bypassPermissions"
@@ -362,7 +362,7 @@ You can also pin specific versions with full model names (`claude-opus-4-6`, `cl
362362
"model": "claude-opus-4-6",
363363
"role": "assistant",
364364
"content": [{ "type": "text", "text": "I'll install cowsay first." }],
365-
"usage": { "input_tokens": 3, "output_tokens": 2 }
365+
"usage": { "inputTokens": 3, "outputTokens": 2 }
366366
}
367367
}
368368
```
@@ -391,10 +391,10 @@ You can also pin specific versions with full model names (`claude-opus-4-6`, `cl
391391
"message": {
392392
"content": [
393393
{
394-
"tool_use_id": "toolu_abc123",
395-
"type": "tool_result",
394+
"toolUseId": "toolu_abc123",
395+
"type": "toolResult",
396396
"content": "Setting up cowsay (3.03+dfsg2-8) ...",
397-
"is_error": false
397+
"isError": false
398398
}
399399
]
400400
}
@@ -407,10 +407,10 @@ You can also pin specific versions with full model names (`claude-opus-4-6`, `cl
407407
{
408408
"type": "result",
409409
"subtype": "success",
410-
"is_error": false,
411-
"num_turns": 10,
412-
"duration_ms": 60360,
413-
"total_cost_usd": 0.203,
410+
"isError": false,
411+
"numTurns": 10,
412+
"durationMs": 60360,
413+
"totalCostUsd": 0.203,
414414
"result": "Here's what I did:\n1. Installed cowsay..."
415415
}
416416
```

0 commit comments

Comments
 (0)