feat: add support for SLIMRPC custom protocol binding

Đang mở
#17 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

  • #18 của @Tehsmash — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend-api-design, cli

Hướng nghiên cứu

Issue mô tả việc thêm một tùy chọn transport mới. Trước tiên, hãy kiểm tra các triển khai transport hiện có (rest, jsonrpc, grpc) trong codebase để hiểu interface. Binding SLIMRPC yêu cầu tích hợp thư viện github.com/agntcy/slim-a2a-go và xử lý CGO. Hãy tìm logic phân tích flag và lựa chọn transport. «Done» có nghĩa là flag --transport slimrpc hoạt động với các flag dành riêng cho SLIM mới và kết nối thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
181
Fork
28
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của a2aproject/a2a-cli

Tất cả issue của a2aproject/a2a-cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.