Skip to content

[DOCS] Go ADK: blocking SendMessage, MessageResponder and artifact update events #932

Closed

Description

@edenreich

Summary

inference-gateway/adk#354 makes the Go ADK pass the full A2A v1.0.1 TCK JSON-RPC suite. It changes user-visible behaviour and adds public API that adk.md does not cover yet:

  • SendMessage now waits until the task reaches a terminal or interrupted state unless the client sets configuration.returnImmediately: true (spec 3.2.2). Long-running agents should have clients set it or use streaming.
  • historyLength is honoured by GetTask, SendMessage, SendStreamingMessage and ListTasks.
  • A taskPushNotificationConfig sent inline in SendMessage is registered; deleting a push notification config is idempotent.
  • SubscribeToTask returns UnsupportedOperation (-32004) for a terminal task and follows an interrupted task (input-required, auth-required) until it terminates.
  • /.well-known/agent-card.json sends Cache-Control: public, max-age=300, ETag and Last-Modified, and answers conditional requests with 304.
  • New server.MessageResponder optional interface: a background task handler implementing RespondToMessage can answer SendMessage with a direct Message and no task.
  • New types.EventTaskArtifactUpdated (adk.agent.task.artifact.updated) CloudEvent with a types.TaskArtifactUpdateEvent payload (append / lastChunk): streamed as artifactUpdate and recorded on the task.
  • New helpers on generated types: TaskState.IsInterrupted, Task.WithHistoryLength, Task.ApplyArtifactUpdate.
  • examples/tck-sut is a reference handler using all of the above; CI runs the TCK against it.

Affected page: adk.md

  • "Task handlers": blocking SendMessage, returnImmediately, MessageResponder with a short example.
  • "Streaming and CloudEvents": add EventTaskArtifactUpdated to the event table, with an example emitting a chunked artifact.
  • "The A2A client" / "Cancelling, listing, and resubscribing": returnImmediately and historyLength on SendTask, SubscribeToTask error on terminal tasks.
  • Agent card section: caching headers.

Source: inference-gateway/adk#354 (follow-up to inference-gateway/adk#353, issue inference-gateway/adk#346).

Acceptance Criteria

  • adk.md documents blocking SendMessage and returnImmediately, including the guidance for long-running agents
  • adk.md documents MessageResponder with an example
  • The CloudEvents table lists EventTaskArtifactUpdated with an example of emitting a chunked artifact
  • historyLength, the SubscribeToTask terminal-task error 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. edenreich commented on Oct 3, 2026

    @edenreich
    ContributorAuthor

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

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

    @inference-gateway-maintainer
    Contributor

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


    Go ADK docs update

    • Read adk.md and the upstream ADK source for accurate API shapes
    • Document blocking SendMessage + returnImmediately
    • Document MessageResponder with example
    • Add EventTaskArtifactUpdated to the CloudEvents table + chunked artifact example
    • Mention historyLength, SubscribeToTask terminal-task error, agent card caching headers
    • Validate (lint:md, format:check, build all pass)
    • Commit and open PR

    What changed in adk.md

    • Task handlers - new "Blocking SendMessage" subsection: spec 3.2.2 blocking semantics, the terminal/interrupted stop condition, TaskState.IsTerminal / IsInterrupted, a client snippet setting returnImmediately + historyLength, and a callout telling long-running agents to poll or stream instead of holding the request open.
    • Answering without a task - server.MessageResponder with a RespondToMessage example, plus the note that it extends rather than replaces TaskHandler.
    • Streaming and CloudEvents - types.EventTaskArtifactUpdated row in the event table, and a "Streaming artifacts" subsection with a chunked append / lastChunk example, how the server fills taskId / contextId and records updates via Task.ApplyArtifactUpdate, and a pointer to examples/tck-sut.
    • Cancelling, listing, and resubscribing - historyLength on GetTask / ListTasks; SubscribeToTask returning -32004 for terminal tasks while still following interrupted ones.
    • Push-notification configuration - inline taskPushNotificationConfig on SendMessage, idempotent deletion.
    • Agent card caching - Cache-Control: public, max-age=300, ETag, Last-Modified and 304 conditional responses.
    • Examples - tck-sut added to the catalogue.

    Not done: nothing from the acceptance criteria was left out. Per the repo convention I kept everything inside adk.md rather than adding a page, and followed the no-tracker-references rule, so the upstream PR/issue numbers are not cited in the content.

    PR: #934
    | 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