You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Go ADK client artifact helper now unwraps A2A v1.0 responses #940
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)
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.
Activity
edenreich commentedon Oct 3, 2026
@claude can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Oct 3, 2026
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
adk.mdcarries Go ADK client artifact content (the Artifacts section, previously a single prose line with no snippet)adk/docs/artifacts.mdfor the new behaviorbun run lint:md,bun run format:check,bun run buildall passWhat changed
adk.mdArtifacts section: replaced the one-line client-side mention with a runnable snippet plus three sentences of behavior notes.ExtractTaskFromResponse(resp)unwraps thetaskfield from the wrappedSendMessageresult beforeDownloadAllArtifacts.ExtractArtifactUpdateFromStreamEvent(evt.Result)first forartifactUpdateresponses, task snapshots falling through toExtractTaskFromResponse. Notes that the v0.3kind: artifact-updatediscriminator is gone, and that the helper still accepts a bareTaskArtifactUpdateEventormap[string]anyfor custom SSE consumers.ExtractTaskFromResponsereturns 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.artifactUpdateevent only show up on the task snapshot or viaGetTask.All three acceptance criteria are covered. No other page needed a change.
PR: #941
| Branch
inference-gateway-releaser commentedon Oct 4, 2026
🎉 This issue has been resolved in version 0.9.21 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀