Repository navigation
docs(typescript-adk): document message/stream SSE event sequence - #66
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #65. Adds a
message/streamJSON-RPC section totypescript-adk.mddocumenting the full SSE event sequence, CloudEvents v1.0 envelope shape,STREAMING_STATUS_UPDATE_INTERVALenv var, cancellation on client disconnect, JSON-RPC -32602 validation surface, and a minimal fetch + SSE parser client sample.Generated with Claude Code