Skip to content

[DOCS] TypeScript ADK: blocking SendMessage, respondToMessage and StreamResponse push payload #933

Closed

Description

@edenreich

Summary

inference-gateway/typescript-adk#250 makes the TypeScript ADK pass the full A2A v1.0.1 TCK JSON-RPC suite. It changes user-visible behaviour and public API that typescript-adk.md describes differently today:

  • SendMessage: the handler is now async and waits until the task reaches a terminal or interrupted state unless configuration.returnImmediately is true (spec 3.2.2); it honours historyLength. The page still calls it a "synchronous" handler.
  • New respondToMessage option on createMessageSendHandler (type MessageResponder): returning a message makes SendMessage reply with it directly and create no task.
  • Follow-up messages resume the paused task named by taskId; messages to a terminal task return UnsupportedOperation (-32004) and a mismatching contextId returns InvalidParams (-32602).
  • A taskPushNotificationConfig sent inline in the message configuration is registered; deleting a push notification config is idempotent.
  • Push notifications are posted as an A2A StreamResponse ({ task }) with Content-Type: application/a2a+json. The TaskUpdateNotification type and the task_update payload are gone.
  • SubscribeToTask returns UnsupportedOperation for a terminal task and, without a live stream, follows the task until it terminates.
  • The agent card is served with ETag and Last-Modified and answers a matching If-None-Match with 304.
  • examples/tck-sut is a reference server using the above; CI runs the TCK against it.

Affected page: typescript-adk.md

  • "What ships today" table: createMessageSendHandler and HTTPPushNotificationSender rows.
  • "The SendMessage JSON-RPC method": blocking behaviour, returnImmediately, historyLength, respondToMessage, taskId resume and the new errors in the validation contract.
  • "Push notifications (HTTPPushNotificationSender)": replace the "Wire payload (TaskUpdateNotification)" section with the StreamResponse payload and content type; note idempotent delete.
  • New short sections for SubscribeToTask semantics and the agent card caching headers.

Source: inference-gateway/typescript-adk#250 (issue inference-gateway/typescript-adk#249). The Go counterpart is tracked in #932.

Acceptance Criteria

  • typescript-adk.md documents the blocking SendMessage, returnImmediately and historyLength
  • respondToMessage is documented with an example
  • The push notification section shows the StreamResponse payload and drops TaskUpdateNotification
  • SubscribeToTask terminal/interrupted semantics and the agent card caching headers are mentioned

Activity

  1. added
    documentation
    on Oct 3, 2026
  2. added theissue type on Oct 3, 2026
  3. moved this to Todo in 2026on Oct 3, 2026
  4. edenreich commented on Oct 3, 2026

    @edenreich
    ContributorAuthor

    @claude can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Oct 3, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 5m 13s —— View job • docs/issue-933-20261003-1531 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-933-20261003-1531?quick_pull=1&title=Issue%20%23933%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23933%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done

    • Read typescript-adk.md and the upstream typescript-adk source
    • Document blocking SendMessage, returnImmediately, historyLength
    • Document respondToMessage with an example
    • Replace TaskUpdateNotification with the StreamResponse push payload
    • Add SubscribeToTask semantics + agent card caching headers
    • Validate (lint:md, format:check, build all pass)
    • Commit and open PR

    What changed in typescript-adk.md

    • SendMessage is now described as blocking: async handler waiting for a terminal or interrupted state (spec 3.2.2) unless configuration.returnImmediately is set, honouring historyLength. Updated the "What ships today" row, the method intro, the old "returns synchronously" paragraph and the Go-parity bullet.
    • New Direct replies (respondToMessage) section with a MessageResponder example, plus the handler-options row and the { message } response form.
    • New Blocking behaviour, returnImmediately and historyLength section covering the three SendMessageConfiguration fields including inline taskPushNotificationConfig registration.
    • New Follow-up messages and task resume section; the validation contract table now carries codes and lists -32001 (unknown task), -32004 (terminal task) and -32602 (mismatching contextId).
    • Push notifications: Wire payload (StreamResponse) replaces the TaskUpdateNotification section, Content-Type is application/a2a+json, every remaining task_update reference is gone, SendMessageConfiguration.pushNotificationConfig corrected to taskPushNotificationConfig, and the idempotent delete is noted.
    • New The SubscribeToTask JSON-RPC method and Agent card caching headers sections.
    • Frontmatter description refreshed; examples/tck-sut linked from Related resources.

    Nothing left out.

    Create a PR - already opened as #935.
    | Branch

  6. moved this from QA to Done in 2026on Oct 3, 2026
  7. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions