fix(a2a): A2A protocol compatibility fixes#361
Closed
tuzkier wants to merge 1 commit intoRightNow-AI:mainfrom
Closed
fix(a2a): A2A protocol compatibility fixes#361tuzkier wants to merge 1 commit intoRightNow-AI:mainfrom
tuzkier wants to merge 1 commit intoRightNow-AI:mainfrom
Conversation
- a2a.rs: A2aArtifact name/description 改为 Option<String>,兼容网关返回 null
- a2a.rs: A2aTask.status 新增 A2aTaskStatusWrapper,同时支持对象形式
{"state":"completed"} 和字符串枚举两种格式(符合 A2A 标准)
- kernel.rs: get_a2a_agent_url/list_a2a_agents 返回 card.url(实际 RPC 端点)
而非 discover key(base URL),修复调用时 404 问题
- routes.rs: A2A agents 列表 API 同步返回 card.url
- routes.rs: 修复 tool-use/result 跨消息匹配,用 tool_use_id 正确关联
Member
|
Implemented in v0.3.25. A2A status wrapper, artifact field relaxation, agent URL fix, and ToolUse/ToolResult cross-message correlation all applied. |
6 tasks
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.
Summary
Fixes A2A (Agent-to-Agent) protocol compatibility issues when connecting to external A2A gateways.
Changes
openfang-runtime (a2a.rs)
nameanddescriptionchanged toOption<String>to handle gateways returningnullA2aTaskStatusWrapperto support both object form{"state":"completed"}and string enum form per A2A specopenfang-kernel (kernel.rs)
card.url(actual RPC endpoint) instead of discover key (base URL)openfang-api (routes.rs)
card.urlfor proper invocationTesting
cargo clippy --workspace --all-targets -- -D warningspassescargo test --workspacepassesSecurity