feat:support A2A protocol

This commit is contained in:
GhostC
2025-06-24 22:19:38 +08:00
parent e499149ac4
commit 8faab601e7
7 changed files with 5 additions and 5 deletions
@@ -13,7 +13,7 @@ This is an experimental integration of the A2A protocol (https://google.github.i
```bash
cd OpenManus
python -m A2A.Manus.main
python -m protocol.a2a.app.main
```
2. Clone A2A official repository and run A2A Client,there are two ways to use A2AClient——CLI and Register A2A Agent Server in UI.(details at https://github.com/google/A2A):
@@ -14,7 +14,7 @@
```bash
cd OpenManus
python -m A2A.Manus.main
python -m protocol.a2a.app.main
```
2. 拉取A2A官方库并运行A2A Client,有两种使用A2A客户端的方式——CLI以及在前端页面注册Agent服务。(详情参考https://github.com/google/A2A:
@@ -14,7 +14,7 @@ from a2a.utils import (
completed_task,
new_artifact,
)
from A2A.Manus.agent import A2AManus
from .agent import A2AManus
from a2a.utils.errors import ServerError
from typing import Callable, Awaitable
@@ -9,9 +9,9 @@ from a2a.types import (
AgentSkill,
)
from A2A.Manus.agent_executor import ManusExecutor
from .agent_executor import ManusExecutor
from A2A.Manus.agent import A2AManus
from .agent import A2AManus
from app.tool.browser_use_tool import _BROWSER_DESCRIPTION
from app.tool.str_replace_editor import _STR_REPLACE_EDITOR_DESCRIPTION
from app.tool.terminate import _TERMINATE_DESCRIPTION