Skip to content

docs(typescript-adk): document message/stream SSE event sequence - #66

Merged
edenreich merged 1 commit into
mainfrom
claude/issue-65-20260527-0045
May 27, 2026
Merged

edenreich merged 1 commit into
mainfrom
claude/issue-65-20260527-0045

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Closes #65. Adds a message/stream JSON-RPC section to typescript-adk.md documenting the full SSE event sequence, CloudEvents v1.0 envelope shape, STREAMING_STATUS_UPDATE_INTERVAL env var, cancellation on client disconnect, JSON-RPC -32602 validation surface, and a minimal fetch + SSE parser client sample.

Generated with Claude Code

Adds a new section covering the message/stream JSON-RPC method shipped
in inference-gateway/typescript-adk#71:

- Agent-card capabilities.streaming requirement
- Registering via registerStreamingMethod + createMessageStreamHandler
- StreamingTaskExecutor contract (delta / statusChanged / inputRequired)
- Full handler options table (storage, executor, statusUpdateIntervalMs,
  heartbeatMs, eventSource, env, idGenerator, now)
- Event sequence: WORKING -> delta * N -> optional periodic
  IN_PROGRESS -> terminal (COMPLETED/FAILED/CANCELLED with final=true)
  or INPUT_REQUIRED (final=false, stream closes)
- CloudEvents v1.0 envelope shape with example status and delta frames,
  plus the full AGENT_EVENT_TYPE constant table
- STREAMING_STATUS_UPDATE_INTERVAL env var (1s default, ms/s/m units,
  0 disables) - documented as shared with the Go ADK
- Cancellation flow on client disconnect (AbortSignal, CANCELLED state,
  final frame, dead-letter)
- Synchronous JSON-RPC -32602 validation surface; mid-stream errors
  become a final FAILED frame
- Minimal browser/Node fetch + SSE parser sample with terminal handling

Cross-references the existing message/send section to the new streaming
variant, marks createMessageStreamHandler as Available in the "What
ships today" table, and notes Go ADK parity (wire format byte-identical,
same source constant, same env var name and default).

Closes #65

Co-authored-by: Eden Reich <[email protected]>
@edenreich
edenreich merged commit c7e6c76 into main May 27, 2026
@edenreich
edenreich deleted the claude/issue-65-20260527-0045 branch May 27, 2026 01:21
github-actions Bot pushed a commit that referenced this pull request May 27, 2026
## [0.6.31](0.6.30...0.6.31) (2026-05-27)

### 📚 Documentation

* **typescript-adk:** document message/stream SSE event sequence ([#66](#66)) ([c7e6c76](c7e6c76)), closes [#65](#65)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document message/stream SSE event sequence for the TypeScript ADK

1 participant