Repository navigation
Labels
documentationImprovements or additions to documentation
Description
Summary
The TypeScript ADK (@inference-gateway/adk) now implements the A2A message/stream JSON-RPC method via inference-gateway/typescript-adk#71 (closes inference-gateway/typescript-adk#16). The response is text/event-stream carrying CloudEvents v1.0 envelopes; the exact frame sequence is documented in README.md of inference-gateway/typescript-adk.
The public documentation site should mirror this contract so client implementers (browsers, other-language SDKs, gateway tooling) can build against the same wire format that the Go ADK and TypeScript ADK both expose.
Surface to cover
- Event sequence:
task.status.changed (WORKING)->agent.delta(0..N) -> optional periodictask.status.changedheartbeat whileIN_PROGRESS-> terminaltask.status.changed (final=true)with state in {COMPLETED,FAILED,CANCELLED,INPUT_REQUIRED}. STREAMING_STATUS_UPDATE_INTERVALenv var: default1s, acceptsNs/Nms/Nmdurations (e.g.500ms,250,30s). Set to0to disable the periodic heartbeat.- Cancellation semantics on client disconnect: the executor receives an
AbortSignal, the task is persisted asCANCELLED, and a finaltask.status.changedframe is emitted before the stream closes. - CloudEvents v1.0 envelope shape:
subject = taskId,typedrawn fromAGENT_EVENT_TYPE.*,datais either aTaskStatusUpdateEventor aMessage. - Streaming capability advertised by the agent card via
capabilities.streaming = true. - JSON-RPC error mapping for invalid params (
-32602) returned synchronously as a regular JSON response, with no SSE stream opened.
Acceptance Criteria
- Page documenting the
message/streamSSE event sequence, covering all six surface points above. - Minimal client sample showing how to consume the stream (JS/TS
fetch+ an SSE parser), including handling of the terminalfinal=trueframe. - Cross-reference from any existing
message/sendpage to the streaming variant. -
STREAMING_STATUS_UPDATE_INTERVALdocumented in the configuration / env-var reference. - Note that the TypeScript ADK and the Go ADK expose the same wire format (single source of truth for client implementers).
References
- Source PR: feat(server): implement message/stream JSON-RPC method with SSE transport typescript-adk#71
- Source issue: [FEATURE] feat: implement message/stream JSON-RPC method typescript-adk#16
- Wire-format reference:
README.mdin inference-gateway/typescript-adk - Go ADK precedent:
adk/server/task_handler.goin inference-gateway/adk
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon May 27, 2026
@claude Can you document it? use /maintainer
claude commentedon May 27, 2026
Claude finished @edenreich's task in 11m 32s —— View job •
claude/issue-65-20260527-0045• Create PR ➔Documenting TypeScript ADK
message/streamSSE event sequenceTodo
inference-gateway/typescript-adk(src/server/message-stream.ts,cloudevents.ts,sse.ts, conformance tests, server registration)AGENT_EVENT_TYPE.*, samesourceconstant, same env-var name)## The message/stream JSON-RPC methodsection totypescript-adk.mdcovering agent-card capability, registration, executor contract, handler options, event sequence, CloudEvents envelope,STREAMING_STATUS_UPDATE_INTERVAL, cancellation, JSON-RPC error mappingfetch+ SSE parser client sample with terminalfinal=true(andINPUT_REQUIREDfinal=false) handlingmessage/sendsection; markcreateMessageStreamHandleras Available in the "What ships today" table; update page frontmatter descriptionnpm run lint:md), format (npm run format:check), build (npm run build) all passclaude/issue-65-20260527-0045(commited5f9d8)Summary
Single-file change: extended
typescript-adk.mdwith a ~250-line## The message/stream JSON-RPC methodsection. Wire format (CloudEvents v1.0 envelopes,subject = taskId,typefromAGENT_EVENT_TYPE.{DELTA, TASK_STATUS_CHANGED}) and configuration (STREAMING_STATUS_UPDATE_INTERVAL, default1s, acceptsms/s/m,0disables) are documented as the single source of truth shared with the Go ADK. Cancellation, validation, and theINPUT_REQUIREDstream-closing edge case are all spelled out for client implementers.One nuance worth flagging for review: the implementation emits
INPUT_REQUIREDwithfinal: false(the task is paused, not done) but the stream still closes - documented as a distinct bullet so clients know to treat it as a terminal frame for stream-lifecycle purposes even thoughfinalisfalse.PR
| Branch:
claude/issue-65-20260527-0045docs(typescript-adk): document message/stream SSE event sequence
docs(typescript-adk): document message/stream SSE event sequence (#66)
chore(release): 🔖 0.6.31 [skip ci]