Skip to content

[DOCS] Rust ADK: blocking SendMessage, direct Message replies, push delivery, agent card caching #936

Closed

Description

@inference-gateway-maintainer

Summary

The Rust ADK (inference-gateway/rust-adk#202) changed user-facing A2A behaviour to close the gaps the A2A TCK reports, matching what the Go ADK did in inference-gateway/adk#354. The docs for the Rust ADK (and any shared A2A server page that describes SendMessage semantics) need updating:

  • SendMessage now blocks until the task reaches a terminal (COMPLETED, FAILED, CANCELED, REJECTED) or interrupted (INPUT_REQUIRED, AUTH_REQUIRED) state, per A2A spec 3.2.2. Clients that relied on an immediate SUBMITTED reply must pass configuration.returnImmediately: true.
  • configuration.historyLength caps the history returned by SendMessage.
  • A SendMessage whose message.taskId names an existing task continues that task (how a client answers an input-required task) instead of creating a new one.
  • TaskHandler has a new optional handle_message hook: returning Some(message) answers with a bare Message and creates no task.
  • Push notifications are delivered: every task update is POSTed to each configured webhook as a StreamResponse, with Authorization: <scheme> <credentials> and X-A2A-Notification-Token. A taskPushNotificationConfig can be sent inline with the message.
  • /.well-known/agent-card.json now sends Cache-Control with max-age, ETag and Last-Modified, and answers conditional requests with 304.
  • A wrong Content-Type on POST /a2a returns JSON-RPC -32005 instead of HTTP 415.

Related PR: inference-gateway/rust-adk#202

Acceptance Criteria

  • Rust ADK pages describe the blocking SendMessage default and the returnImmediately, historyLength and taskPushNotificationConfig configuration fields
  • Task continuation via message.taskId is documented, with the input-required answer flow
  • The TaskHandler::handle_message direct-Message hook is documented
  • Push notification webhook delivery (payload shape, auth headers, at-most-once) is documented
  • Agent card caching headers and the 304 behaviour are documented

Activity

  1. added
    documentation
    on Oct 3, 2026
  2. edenreich commented on Oct 3, 2026

    @edenreich
    Contributor

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

  3. added theissue type on Oct 3, 2026
  4. inference-gateway-maintainer commented on Oct 3, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done - #939

    • Gather context (read rust-adk.md, verified every API name against inference-gateway/rust-adk at main, 0.16.2)
    • Track issue on Roadmap board (In progress -> QA)
    • Blocking SendMessage + returnImmediately / historyLength / taskPushNotificationConfig
    • Task continuation via message.taskId, with the input-required answer flow
    • TaskHandler::handle_message direct-Message hook
    • Push notification webhook delivery (payload, auth headers, at-most-once)
    • Agent card caching headers + 304, and the -32005 content-type error
    • Validate (lint:md, format:check, build all pass)
    • Commit + open PR

    What changed

    rust-adk.md gains four sections: Blocking SendMessage (settle rule per A2A spec 3.2.2, the three SendMessageConfiguration fields, the 30s server-side settle timeout, migration note for clients that expected an immediate TaskStateSubmitted), Continuing an existing task (message.taskId, plus the -32001 / -32004 / -32602 rejections), Answering without a task (handle_message), and Card caching (Cache-Control: public, max-age=300, ETag, Last-Modified, 304). The "webhook delivery is still in development" note is replaced with the real StreamResponse payload, the Authorization / X-A2A-Notification-Token header sources, and the at-most-once contract. a2a.md gets one line on the blocking default next to the SendMessage bullet.

    Stale facts fixed on lines I was already touching: the discovery endpoint is /.well-known/agent-card.json (the page still said agent.json), the handler example uses the real handle_task(&self, task, Option<Message>) signature, and the push-config request types are the flat TaskPushNotificationConfig / ListTaskPushNotificationConfigsRequest with plain task_id / id.

    Not done: the rest of the A2AClient request-type table is probably also drifted (several structs moved from name/parent to id/task_id); I only corrected the push-notification rows that my edits touched, since a full audit is outside this issue.
    | branch

  5. 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