Repository navigation
refactor: adopt A2A v1.0.1 method names via adk v0.31.0 - #133
Conversation
|
@claude can you bump the version of the adk to latest and also verify the examples work as expected? use /ponytail:ponytail /go /go-concurrency /domain-driven-design |
|
Claude finished @edenreich's task in 10m 57s —— View job Done
Verifying the exampleDocker is not allow-listed in this runner, so I also confirmed Two real defects the verification foundBoth are v1.0.1 enum-rename fallout the original refactor missed - the states went from 1. 2. Raw enum values leaked into the human-facing streaming output. While in there: the task-snapshot event prints the task's Things worth your call
|
## [0.11.0](v0.10.0...v0.11.0) (2026-10-03) ### ✨ Features * **auth:** add auth command and credential flags ([#114](#114)) ([b40e02a](b40e02a)) ### ♻️ Improvements * adopt A2A v1.0.1 method names via adk v0.31.0 ([#133](#133)) ([18f5323](18f5323)) ### 👷 CI * **claude:** centralize claude.yml via reusable workflow ([#123](#123)) ([c64f10f](c64f10f)) * **claude:** centralize claude.yml via reusable workflow ([#126](#126)) ([d2c0b71](d2c0b71)) ### 📚 Documentation * **agents:** refresh AGENTS.md for current code layout ([#118](#118)) ([efee952](efee952)) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.245 -> 2.1.266 ([#112](#112)) ([2c185f0](2c185f0)) * **deps:** bump claude-code 2.1.266 -> 2.1.278 ([#121](#121)) ([8a66dea](8a66dea)) * **deps:** bump claude-code 2.1.278 -> 2.1.280 ([#124](#124)) ([de903b9](de903b9)) * **deps:** bump claude-code 2.1.280 -> 2.1.283 ([#127](#127)) ([9fc5ace](9fc5ace)) * **deps:** bump claude-code 2.1.283 -> 2.1.285 ([#131](#131)) ([b2b57c2](b2b57c2)) * **deps:** bump infer CLI v0.183.0 -> v0.192.0 ([#113](#113)) ([58338f7](58338f7)) * **deps:** bump infer CLI v0.192.0 -> v0.205.3 ([#122](#122)) ([dcc41b7](dcc41b7)) * **deps:** bump infer CLI v0.205.3 -> v0.208.0 ([#125](#125)) ([921b772](921b772)) * **deps:** bump infer CLI v0.208.0 -> v0.218.0 ([#128](#128)) ([b1dbfed](b1dbfed)) * **deps:** bump infer CLI v0.218.0 -> v0.221.1 ([#130](#130)) ([775c18c](775c18c)) * **lint:** enforce Go import grouping and named imports with gci and importas ([#117](#117)) ([ca24b08](ca24b08)), closes [#116](#116) ### 🔨 Miscellaneous * **deps:** bump docker/setup-buildx-action in the github-actions group ([#120](#120)) ([2c42a52](2c42a52)) * **deps:** bump github.com/inference-gateway/adk in the gomod group ([#115](#115)) ([479f614](479f614)) * **deps:** bump github.com/inference-gateway/adk in the gomod group ([#119](#119)) ([e8bf20c](e8bf20c)) * **deps:** bump github.com/inference-gateway/adk in the gomod group ([#129](#129)) ([d1b7019](d1b7019))
|
🎉 This PR is included in version 0.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Bumps
github.com/inference-gateway/adkfrom v0.29.0 to v0.31.0 and refactors the debugger onto the A2A v1.0.1 JSON-RPC surface. The v0.x slash method names no longer exist anywhere incli/or the README - every error label now comes from the generatedtypes.A2AMethod*constants.Method name constants
handleA2AErrornow takes atypes.A2AMethodinstead of a free-form string, so the compiler rejects stray literals. Call sites usetypes.A2AMethodListTasks,types.A2AMethodGetTask,types.A2AMethodSendMessage,types.A2AMethodSendStreamingMessageandtypes.A2AMethodGetExtendedAgentCard. The one non-JSON-RPC label left is the public agent card fetch, which is a plain HTTP GET on the well-known path - it uses a namedagentCardMethodconstant rather than a slash name.Renamed request/response types in v0.31.0
The ADK regenerated its types alongside the method rename, so the client call sites moved too:
types.MessageSendParamstypes.SendMessageRequesttypes.TaskListParamstypes.ListTasksRequesttypes.TaskQueryParamstypes.GetTaskRequesttypes.TaskListtypes.ListTasksResponsetypes.TaskIdParamstypes.CancelTaskRequesttypes.TaskResubscriptionParamstypes.SubscribeToTaskRequesttypes.GetAuthenticatedExtendedCardParamstypes.GetExtendedAgentCardRequesttypes.*PushNotificationConfigParamstypes.*PushNotificationConfig*RequestOther adaptations:
PageSize/PageTokeninstead ofLimit/Offset). The--limitand--offsetflags are preserved: the ADK encodes the offset in the opaque page token, so--offsetis passed through as the page token.TaskListParams.Stateis nowListTasksRequest.Status.AgentCard.SupportsExtendedAgentCardtoAgentCard.Capabilities.ExtendedAgentCard.SendMessagenow returns aSendMessageResponsewrapping the task, whileGetTaskstill returns a bareTask.taskFromResulthandles both and is reused bytasks submit.Task.ContextIDbecame*string; call sites useTask.GetContextID().types.TaskStateCancelledis nowtypes.TaskStateCanceled.Part.Filewas replaced by the flattenedFilename/URL/Raw/MediaTypefields.Typed streaming events
submit-streamingand the interactive chat UI no longer guess the event kind by probing forartifact/final/idkeys. v0.31.0 ships a typedtypes.StreamResponsewrapper, so each event is decoded once and dispatched on whichever ofStatusUpdate/ArtifactUpdate/Task/Messageis non-nil. This removes the repeated re-unmarshalling in both switches and adds handling for the previously-unsupportedMessageevent kind. The[FINAL]marker is gone becauseTaskStatusUpdateEventno longer carries afinalfield - the stream ending is signalled by the channel closing.Streaming test fixtures were rewritten from hand-rolled
map[string]anypayloads to typedtypes.StreamResponsevalues, so they now match the wire shape the ADK actually emits.Verification
go build ./...passesgo vet ./...passesgo test ./...passesgo mod tidyleaves the module files cleango fmt ./...reports no changesgolangci-lint runcould not be executed in this sandbox (the command is not allow-listed), so CI is the first lint signal.The end-to-end acceptance criterion ("every debugger command works against a v0.31.0 ADK agent") was not exercised here -
example/docker-compose.ymlneeds a container runtime that is unavailable in this environment. The push-notification-config methods are only stubbed in the test mock and are not reachable from any CLI command, so they are renamed but untested.Downstream impact
The streaming output changed slightly for users (
[FINAL]marker removed, newAgent Messageevent line), and the debugger now requires an ADK v0.31.0 agent - v0.x agents will answer every call with-32601. A[DOCS]issue is filed oninference-gateway/docsto cover the version requirement.Closes #132