feat: add support for SLIMRPC custom protocol binding

未关闭
#17 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

  • #18 来自 @Tehsmash —— 已关闭,未合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃

调研方向

该 issue 描述了添加新的传输选项。首先检查代码库中现有的传输实现(rest、jsonrpc、grpc),以了解接口。SLIMRPC 绑定需要集成 github.com/agntcy/slim-a2a-go 库并处理 CGO。查找 flag 解析和传输选择逻辑。“Done”意味着 --transport slimrpc flag 能够与新的 SLIM 专用 flags 一起工作并成功建立连接。

由索引模型根据 Issue 内容生成。

描述

Summary

Add support for the SLIMRPC custom protocol binding as an optional transport in the A2A CLI, selectable via --transport slimrpc.

Background

SLIMRPC is Protobuf RPC over SLIM (Secure Low-Latency Interactive Messaging) — a transport layer designed for agentic workloads that provides:

  • Peer-to-peer architecture with NAT/firewall traversal (no centralized broker)
  • Hierarchical name-based addressing (org/namespace/service) instead of URLs
  • End-to-end encryption via MLS
  • Native multicast and group communication
  • Bidirectional low-latency messaging

The protocol binding identifier is https://a2a-protocol.org/bindings/experimental-slimrpc/v1. Reference Go implementation: github.com/agntcy/slim-a2a-go.

Proposed Changes

  • Add slimrpc to the --transport flag (alongside rest, jsonrpc, grpc)
  • Add SLIM-specific flags:
    • --slim-endpoint — SLIM node endpoint (default http://127.0.0.1:46357)
    • --slim-local-name — local SLIM identity (org/namespace/app, default agntcy/a2a-cli/client)
    • --slim-secret — shared secret for app authentication (optional)
  • CGO-gated implementation: the SLIM bindings require CGO (github.com/agntcy/slim-bindings-go/v2); a stub with a clear error message is compiled when CGO_ENABLED=0
  • CI: run slim-bindings-setup to install the native library before build/test

Usage

a2a send --transport slimrpc --endpoint agntcy/demo/echo_agent \
  --slim-endpoint http://127.0.0.1:46357 \
  --slim-secret my_secret \
  "hello"

References

主要语言
Go
星标
181
派生
28
平均合并
2 天 11 小时
30 天内合并 PR
22

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

a2aproject/a2a-cli 的其他 Issue

查看 a2aproject/a2a-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。