https://github.com/HiveNexus/A2A-Chat
A chatbot based on the Agent 2 Agent protocol, which can assign tasks to external Agents through dialogue and obtain results. 一个基于 Agent 2 Agent 协议的聊天应用,可以通过对话方式给外部 Agent 下发任务,并获取结果
https://github.com/HiveNexus/A2A-Chat
Last synced: 10 months ago
JSON representation
A chatbot based on the Agent 2 Agent protocol, which can assign tasks to external Agents through dialogue and obtain results. 一个基于 Agent 2 Agent 协议的聊天应用,可以通过对话方式给外部 Agent 下发任务,并获取结果
- Host: GitHub
- URL: https://github.com/HiveNexus/A2A-Chat
- Owner: HiveNexus
- Created: 2025-05-03T02:07:07.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-05-03T02:23:24.000Z (10 months ago)
- Last Synced: 2025-05-03T03:34:04.135Z (10 months ago)
- Language: TypeScript
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - HiveNexus/A2A-Chat - A chatbot based on the Agent 2 Agent protocol, which can assign tasks to external Agents through dialogue and obtain results. 一个基于 Agent 2 Agent 协议的聊天应用,可以通过对话方式给外部 Agent 下发任务,并获取结果 (TypeScript)
README
# A2A Chat
这是一个基于 A2A([Agent-to-Agent](https://github.com/google/A2A)) 协议的聊天应用,有以下特点:
* 数据本地存储,可以通过链接添加 Agent, 应用通过读取 Agent Card 展示 Agent 信息
* 通过对话方式使用 Agent,当前版本暂只支持发送文本
* 流式显示 Agent 的响应,支持 Artifact 的显示
关于 A2A 的详细介绍见:
* https://google.github.io/A2A/
* https://github.com/google/A2A
## 概览
- **DEMO**: https://a2a-chat.vercel.app/chat
- **视频演示**:[Youtube](https://www.youtube.com/watch?v=tlvBmsueHS8)
- **截图**


## 开始使用
### 方法 1:本地部署(推荐)
1. 克隆本项目到本地
``` bash
git clone https://github.com/HiveNexus/a2a-chat.git
```
2. 安装依赖库
```
cd a2a-chat
npm install
```
3. 启动程序
```
//测试开发
npm run dev
//正式启动
npm run build
npm run start
```
在浏览器中打开 [http://localhost:3000](http://localhost:3000) 查看。
### 方法 2:Docker 部署
>注意: 因为目前几乎没有公开的基于 A2A 的服务,不建议使用 Vercel 或公网部署。Google 提供的官方示例基本只能本地运行,只有通过本地 127.0.0.1 或局域网访问,所以更推荐方法 1。
```bash
docker run -d --name a2a-chat -p 3000:3000 hivenexus/a2a-chat:latest
```
在浏览器中打开 http://localhost:3000 查看。
### 方法 3:Vercel 部署
>注意:因为目前几乎没有公开的基于 A2A 的服务,不建议使用 Vercel 或公网部署。Google 提供的官方示例基本只能本地运行,只有通过本地 127.0.0.1 或局域网访问,所以更推荐方法 1。
点击下面的按钮,即可开始部署。
[](https://vercel.com/new/clone?repository-url=https://github.com/HiveNexus/A2A-Chat.git&project-name=a2a-chat)
### 添加 Agent
由于 A2A 协议发布不久,目前几乎没有公开的基于 A2A 的服务,如需测试验证,需要使用 Google 提供的官方示例:
https://github.com/google/A2A/tree/main/samples
部分示例只能支持本地运行,运行成功后,通过 Agent 地址进行添加。所以更推荐方法 1 进行部署。
### 附:
如果需要一个直接和大模型对话的 Chatbot,可以尝试我们的另一个项目:
HiveChat: https://github.com/HiveNexus/HiveChat