feat(a2a): 完善 A2A 1.0 适配与可持久化 HITL - #2311
Open
lzbjut wants to merge 14 commits into
Open
Conversation
This was referenced Jul 20, 2026
Collaborator
|
@lzbjut 你好,有联系方式不?可以发我主页邮箱,我拉你进官方群 |
5 tasks
lzbjut
force-pushed
the
codex/a2a-1.0-durable-hitl
branch
from
July 29, 2026 03:01
6cc6bfa to
ce77b25
Compare
Author
|
这次继续在原分支补齐了 AgentScope 2.0.1 相关适配,没有新增或修改版本号,仍沿用上游现有的
同时将分支 rebase 到当前最新
|
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.
Preserve ToolResultBlock metadata when emitting ToolResultEndEvent, then merge it into A2A tool-result parts without allowing custom metadata to override reserved protocol fields. Cover the real ReAct event path and both streaming and completed A2A round trips.
lzbjut
force-pushed
the
codex/a2a-1.0-durable-hitl
branch
from
July 29, 2026 08:51
ce77b25 to
daca848
Compare
Author
|
补充同步了最新一处工具结果信息保真修复,仍未新增或修改版本(保持
验证结果:A2A server 聚合测试通过(Core 2230、Client 179、Server 249),全仓 83 模块 |
Author
|
已同步最新 upstream/main,并解决 ReActAgent 的 HITL 冲突:保留本 PR 的工具确认准备与修改入参逻辑,同时接入上游新增的 UserConfirmResultEvent replyId 持久化/关联语义。 本地验证:
PR 已恢复为 MERGEABLE;新一轮 GitHub CI 正在排队。 |
lzbjut
marked this pull request as ready for review
August 5, 2026 05:56
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