feat(a2a): 完善 A2A 1.0 适配与可持久化 HITL#2311
Draft
lzbjut wants to merge 8 commits into
Draft
Conversation
Migrate the A2A dependency groupId from io.github.a2asdk to org.a2aproject.sdk, update Java packages and SDK task/executor APIs, and preserve AgentScope-facing builders and cards. Adopt the pre-HITL AgentEvent adapter and protobuf 4.33.2 runtime. This is a breaking API migration, not a version-only build change.
This was referenced Jul 20, 2026
Collaborator
|
@lzbjut 你好,有联系方式不?可以发我主页邮箱,我拉你进官方群 |
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.
背景
AgentScope Java 2.x 已提供类型化的
AgentEvent流和 HITL 事件,但现有 A2A 模块仍使用 1.0 之前的 Java SDK,并保留了一部分旧事件适配逻辑。本 PR 提供一套完整的 A2A 1.0 适配实现,并补齐远程 HITL 的暂停、恢复与可选持久化协调能力。主要改动
io.github.a2asdk:*:0.3.3.Final迁移到org.a2aproject.sdk:*:1.0.0.Final,protobuf runtime 对齐到4.33.2。AgentEvent,将 text、thinking、tool use/result、子 Agent source 和终态映射为 A2A 1.0 artifact/status。resume(...)与cancelHandoff(...)API;原有A2aAgent.call()保持可用。与现有工作的关系
streamEvents迁移的署名。兼容性与边界
验证
mvn clean verify:85 个 reactor 模块全部成功;7,597 tests,0 failures,0 errors,168 skipped。1.0.0.Final,protobuf-java/-util 仅4.33.2。agentscope-all;主 A2A Starter 不传递 Redis/Redisson。Closes #2270