feat: upgrade a2a-sdk dependency to v1.0.0-alpha.0 (A2A 1.0 spec)#5160
Open
Sravan1011 wants to merge 1 commit intogoogle:mainfrom
Open
feat: upgrade a2a-sdk dependency to v1.0.0-alpha.0 (A2A 1.0 spec)#5160Sravan1011 wants to merge 1 commit intogoogle:mainfrom
Sravan1011 wants to merge 1 commit intogoogle:mainfrom
Conversation
- Bump a2a-sdk from 0.3.x to >=1.0.0a0 - Migrate from Pydantic models to Protocol Buffer messages - Replace TextPart/DataPart with unified Part proto - Update all enums to proto naming (Role.ROLE_USER, TaskState.TASK_STATE_SUBMITTED, etc.) - Replace deprecated AgentCard.url with supported_interfaces - Switch to MessageToDict for proto serialization - Remove deprecated request_metadata from send_message - Fix (update, task) tuple unpacking for streaming responses All 426 tests pass (315 a2a + 94 remote agent + 17 agent registry).
kedar49
reviewed
Apr 5, 2026
| return {} | ||
|
|
||
|
|
||
| def _coerce_a2a_message(message: Message | Any) -> Message: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title: feat: upgrade a2a-sdk dependency to v1.0.0-alpha.0 (A2A 1.0 spec)
Description:
Summary
Closes #5056
Upgrades the a2a-sdk dependency from 0.3.x to >=1.0.0a0 to support the A2A 1.0 specification with proto-based types.
Changes
Dependency:
Bumped a2a-sdk from >=0.3.4,<0.4.0 to >=1.0.0a0 in both [a2a] and [test] extras
Proto Migration (18 source files):
Replaced TextPart/DataPart with unified Part proto (.text, .inline_data fields)
Updated all enums to proto naming (Role.ROLE_USER, TaskState.TASK_STATE_SUBMITTED, etc.)
Replaced deprecated AgentCard.url with supported_interfaces
Switched to MessageToDict from google.protobuf.json_format for proto serialization
Removed deprecated request_metadata parameter from send_message
Fixed (update, task) tuple unpacking for A2A 1.0 streaming responses
Updated ClientCallContext import from a2a.client (previously a2a.client.middleware)
Updated AgentRegistry to dynamically migrate legacy url fields to supported_interfaces
Tests (17 test files):
Updated all test mocks to use proto-based types instead of Pydantic models
Replaced Mock(spec=TextPart) with real Part() proto instances
Updated all enum references and tuple argument ordering in test assertions