Files
myWiki/concepts/agent-communication-stack.md

53 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Agent通信协议栈
created: 2026-05-01
updated: 2026-05-01
type: concept
tags: [llm, architecture]
sources: [papers/song-agent-network-taxonomy.md]
---
# Agent通信协议栈 (Agent Communication Stack)
> 大规模 LLM Agent 网络的**三层通信架构**:传输层 → 结构层Function Calling→ 语义层。由 Song et al. (2026) 在 [[song-agent-network-taxonomy]] 论文中系统化。
## 三层结构
| 层 | 作用 | 通信形式 | 主要难点 |
|----|------|---------|---------|
| **传输层** (Transport) | 网络数据传输 | 二进制/文本消息 | 延迟、排序、可靠性 |
| **结构层** (Structural) | 跨 agent 结构化操作执行 | Schema-based 消息 | 兼容性、版本漂移、schema 演化 |
| **语义层** (Semantic) | 推理对齐、上下文传播、共享状态 | 自然语言 + 结构化证据 | 跨 agent 一致性和上下文一致性 |
## 各层详解
### 传输层
负责消息的实际传递。大规模系统中需处理:
- 可预测延迟
- 消息排序与可靠性
- 并发消息冲突
### 结构层 (Function Calling + Tool Calling)
Agent 通过 schema 定义发出结构化操作。核心机制:
```json
{"name": "get_weather", "arguments": {"city": "Atlanta"}}
```
大规模网络中,每次调用都参与全局通信图,影响信息流动和长期稳定性。
### 语义层
最高层——确保 agent 的推理状态在分布式执行下保持一致。**语义不一致是大规模系统的首要失败点**——GenSim 实验表明即使传输和结构层正确,语义漂移在数千 agent 规模下仍导致任务级分歧。
## 大规模扩展难题
1. 通信负载随 N 增长饱和消息队列
2. 上下文漂移:不同 agent 维护不一致的事件摘要
3. 排序与并发:异步消息重排序导致时序视图分歧
4. 解释不匹配:异构模型间 schema 相同但语义不兼容
5. 更新不稳定:并发更新放大微小不一致
6. 安全与信任:通信通道倍增 → 攻击面扩大
## 相关概念
- [[agent-network-taxonomy]] — 完整分类法
- [[decentralized-agent-architecture]] — 去中心化架构
- [[song-agent-network-taxonomy]] — 父论文