feat: add A2A dual-stack compatibility foundations#382
Merged
liujuanjuan1984 merged 3 commits intomainfrom Apr 2, 2026
Merged
Conversation
Collaborator
Author
|
本轮聚焦 PR 代码变动自审,结论如下。
当前仍有两个已知边界,但它们不是本 PR 的遗漏,而是已被显式公开的兼容范围:
PR 与 issue 的关系我也复核过:
|
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.
背景
本 PR 基于同一条协议兼容主线,补齐当前
opencode-a2a对 A2A0.3/1.0双轨兼容的基础设施、错误封装与公开支持边界。协议协商基础设施
Major.Minor语义,并引入default_protocol_version/supported_protocol_versionsA2A-Versionheader 与 query 参数,对不支持版本在路由前集中拒绝A2A-Version,避免调用侧继续散落协议版本判断错误封装与协议适配
jsonrpc/error_responses.py增加集中式协议感知错误整形0.3现有 legacy JSON-RPC / REST 错误契约不变1.0/1.x增加:datagoogle.rpc.ErrorInfo风格 detailserror.details[]兼容矩阵与公开支持边界
protocol_compatibility摘要README.md、docs/guide.md、docs/extension-specifications.md补齐0.3/1.0compatibility matrix0.3=supported1.0=partialAgentInterface.protocolVersion仍受a2a-sdk==0.3.25限制0.3baseline测试与验证
./scripts/doctor.sh495 passed,总覆盖率91.36%Issue 关联