Skip to content

[DOCS] Go ADK client artifact helper now unwraps A2A v1.0 responses #940

Closed

Description

@inference-gateway-maintainer

Summary

The Go ADK client ArtifactHelper was fixed for the A2A v1.0 wire shapes in inference-gateway/adk#382 (closes inference-gateway/adk#375). ExtractTaskFromResponse now unwraps the task field from SendMessageResponse / StreamResponse (it previously returned a zero-value task with a nil error), and ExtractArtifactUpdateFromStreamEvent now matches an artifactUpdate stream response instead of the removed v0.3 kind: artifact-update discriminator. Any client-side artifact extraction snippets published in the docs site should be checked against the new behaviour.

Affected: pages covering Go ADK client artifact handling and streaming artifact updates. The in-repo docs/artifacts.md was updated in the PR; the docs site may carry copies of those snippets.

Acceptance Criteria

  • Go ADK client artifact snippets show extracting the task from the wrapped SendMessage / streaming results
  • Streaming examples show handling artifactUpdate stream responses via ExtractArtifactUpdateFromStreamEvent
  • Note that ExtractTaskFromResponse returns an error when the result carries no task (direct message reply, status update, artifact update)

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 1m 55s —— View job • docs/issue-940-20261003-1802 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-940-20261003-1802?quick_pull=1&title=Issue%20%23940%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23940%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done

    • Gather context - only adk.md carries Go ADK client artifact content (the Artifacts section, previously a single prose line with no snippet)
    • Check upstream adk/docs/artifacts.md for the new behavior
    • Update the Go ADK client artifact snippet
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit + open PR

    What changed

    adk.md Artifacts section: replaced the one-line client-side mention with a runnable snippet plus three sentences of behavior notes.

    • Blocking path: ExtractTaskFromResponse(resp) unwraps the task field from the wrapped SendMessage result before DownloadAllArtifacts.
    • Streaming path: ExtractArtifactUpdateFromStreamEvent(evt.Result) first for artifactUpdate responses, task snapshots falling through to ExtractTaskFromResponse. Notes that the v0.3 kind: artifact-update discriminator is gone, and that the helper still accepts a bare TaskArtifactUpdateEvent or map[string]any for custom SSE consumers.
    • Documented that ExtractTaskFromResponse returns an error when the result carries no task (direct message reply, status update, artifact update), so those events get skipped rather than yielding a zero-value task.
    • Kept the existing note that artifacts attached without an artifactUpdate event only show up on the task snapshot or via GetTask.

    All three acceptance criteria are covered. No other page needed a change.

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