Skip to content

Commit 84ba07f

Browse files
docs(spec): fix missing contextId in streaming example (#2083)
## What changed - add `contextId` to the streaming task example in section 6.2 - keep the SSE example aligned with the documented event/task shape ## Why The streaming example omitted `contextId` even though the spec requires it for task/event continuity. This makes the example easy to copy incorrectly. ## Root cause The prose and field definitions were updated, but the SSE example in `docs/specification.md` was left behind. ## Validation - ran `bash scripts/sort_spelling.sh` - ran `npx markdownlint-cli 'docs/**/*.md' --config '.github/linters/.markdownlint.json' --fix` - ran `git diff --check` Fixes #1683 Co-authored-by: Sampath Kumar <sam1990kumar@gmail.com>
1 parent 7608bd0 commit 84ba07f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,11 +1373,11 @@ Authorization: Bearer token
13731373
HTTP/1.1 200 OK
13741374
Content-Type: text/event-stream
13751375
1376-
data: {"task": {"id": "task-uuid", "status": {"state": "TASK_STATE_WORKING"}}}
1376+
data: {"task": {"id": "task-uuid", "contextId": "context-uuid", "status": {"state": "TASK_STATE_WORKING"}}}
13771377
1378-
data: {"artifactUpdate": {"taskId": "task-uuid", "artifact": {"parts": [{"text": "# Climate Change Report\n\n"}]}}}
1378+
data: {"artifactUpdate": {"taskId": "task-uuid", "contextId": "context-uuid", "artifact": {"parts": [{"text": "# Climate Change Report\n\n"}]}}}
13791379
1380-
data: {"statusUpdate": {"taskId": "task-uuid", "status": {"state": "TASK_STATE_COMPLETED"}}}
1380+
data: {"statusUpdate": {"taskId": "task-uuid", "contextId": "context-uuid", "status": {"state": "TASK_STATE_COMPLETED"}}}
13811381
```
13821382

13831383
### 6.3. Multi-Turn Interaction

0 commit comments

Comments
 (0)