Fix SDK documentation: replace 'file diffs' with 'file change notifications' (#6425)

The TypeScript SDK's README incorrectly claimed that runStreamed() emits
"file diffs". However, the FileChangeItem type only contains metadata
(path, kind, status) without actual diff content.

Updated line 36 to accurately describe the SDK as providing "file change
notifications" instead of "file diffs" to match the actual
implementation in items.ts.

Fixes #5850
This commit is contained in:
Raduan A.
2025-11-09 17:37:16 +01:00
committed by GitHub
parent a47181e471
commit 8b80a0a269

View File

@@ -33,7 +33,7 @@ const nextTurn = await thread.run("Implement the fix");
### Streaming responses
`run()` buffers events until the turn finishes. To react to intermediate progress—tool calls, streaming responses, and file diffs—use `runStreamed()` instead, which returns an async generator of structured events.
`run()` buffers events until the turn finishes. To react to intermediate progress—tool calls, streaming responses, and file change notifications—use `runStreamed()` instead, which returns an async generator of structured events.
```typescript
const { events } = await thread.runStreamed("Diagnose the test failure and propose a fix");