数据截至 (上游 commit 3a4e2ae3eec0)
第 5 章 · 多智能体与服务层
这一章讲:AgentScope 2.0 怎么表达「多个 agent 协作」,以及 app 层的会话、总线、沙 箱是怎么搭的。
5.1 先说一件重要的事:编排原语没了
AgentScope 1.x 的招牌是 msghub、sequential_pipeline 这类编排原语。在本 commit 的 src/ 下,这些符号是 0 命中。
这是有意的路线选择。README 里写着:
Our approach leverages the models' reasoning and tool use abilities rather than constraining them with strict prompts and opinionated orchestrations.
所以 2.0 的多智能体长这样:
| 维度 | 1.x 的做法 | 2.0 的做法 |
|---|---|---|
| 谁决定下一个谁说话 | 框架的 pipeline | 模型调 TeamSay 工具 |
| 消息怎么传 | 进程内的 msghub | 消息总线的每会话 inbox |
| 协作在哪一层 | SDK 层 | app 服务层 |
代价是:纯 SDK 用法下没有开箱的多 agent 协作,你得起 app 服务或者自己拼。这是个真实的门槛,第 6 章会作为边界再提一次。