dev.to | 📄 原文链接 | 2026-11-07 收录

一个 A2A 客户端打通 Lightsail、Bedrock AgentCore 和本机

来源:dev.to — 2026-11-05

📋 概述

作者把一个 Rust 的 A2A 1.0 智能体部署到 Lightsail 容器,把一个 Strands 协调器(用 Bedrock 上的 Claude Haiku)部署到 Bedrock AgentCore Runtime,然后让同一个 a2a 命令行工具去驱动四个端点:两个云端、两个本机副本。16 项检查全部通过,而且 CLI 还顺带承载了 Strands 智能体对 Rust 智能体的调用——因为 Strands 锁定的 a2a-sdk 只支持协议 0.3,而 Rust SDK 服务的是 1.0,两边的 agent card 结构不同。CLI 同时读两种卡片,所以跨版本调用不需要写第二套客户端;在 AWS 上它只需要多带登录令牌、会话头和完整的 agent card URL。

🔑 核心要点

💡 金句

“The A2A CLI drove all four endpoints with the same commands, 16 of 16 checks passed, and the CLI also carried the call from the Strands agent to the Rust agent.”
译:A2A CLI 用同一套命令驱动了全部四个端点,16 项检查全部通过,并且还承载了从 Strands 智能体到 Rust 智能体的调用。
← 返回 dev.to 首页