96SEO 2026-08-01 15:08 2
上一篇讲了 MCP:一个 Agent 通过标准协议连接工具服务。工具是被动的——它等待被调用,执行,返回结果。怎么说呢,
使用者痛点:在实际项目中。很多业务流程需要多个具备自主决策能力的 Agent 协同工作,而不是单纯调用工具。缺乏统一的协作机制会导致:

但有些场景里你需要委托的不是一个工具。而是另一个有自主决策能力的 Agent:
当这三个 Agent 需要协作时它们之间怎么沟通?谁知道谁的存在,怎么传递工作?不过,这就是 A2A协议 要解决的问题。
MCP: Agent ←→ 工具/数据源
再看A2A,Agent ←→ Agent
每个 Agent 发布一张 AgentCard描述它能做什么:
from a2a.types import AgentCard。AgentSkill
def make_skill:
s = AgentSkill
s.id = skill_id
s.name = name
s.description = description
s.tags.extend
return s
research_card = AgentCard
research_card.name = "research-agent"
research_card.description = "Gars factual background on technical topics"
research_card.skills.append(
make_skill
)
AgentCard 的关键字段:namedescriptionskills。
这就像是 OpenAPI Spec 的 Agent 版本——机器可读的能力声明。
Agent 间传递的不是函数调用,而是 Task
from a2a.types import Task,TaskState,Message,Part。Role
import uuid
task = Task
task.id = str)
task.status.state = TaskState.TASK_STATE_SUBMITTED
# 输入:User 角色的 Message
msg = Message
msg.role = Role.ROLE_USER
part = Part
part.text = "Should I use Python or Go?"
msg.parts.append
task.history.append
Task 有生命周期状态:SUBMITTED → WORKING → COMPLETED / FAILED. 完成时Agent 把结果追加为 ROLE_AGENT 的 Message。
AgentRegistry 存储所有注册的 AgentCard,支持按 tag 发现:
class AgentRegistry:
def register -> None:
self._agents = AgentEntry
def discover -> list:
"""返回所有 skill 包含指定 tag 的 Agent"""
...
def delegate -> Task:
"""创建 Task 并通过注册的 handler 执行"""
...
Pain Point:If you hard‑wire orchestration logic,any change in an agent forces you to modify orchestrator code – even across services.
def direct_orchestrator -> str:
research = research_agent_fn # 硬依赖
analysis = analysis_agent_fn # 硬依赖
answer = writing_agent_fn # 硬依赖
return answer
实测结果:
→ calling research_agent
→ calling analysis_agent
→ calling writing_agent
再看Answer。Choose Python if you need rapid development with broad libraries.
Select Go if performance and concurrency are critical...
The functionality works,but orchestrator is tightly coupled to three concrete agents. Replacing any one of m requires code changes – impossible when orchestrator lives in anor service.
Simplify discovery and delegation by using registry:
registered: research-agent
registered: analysis-agent
registered: writing-agent
Pain Point 消除:No hard‑coded names in orchestrator;new agents can be added without touching business logic.
researchers = registry.discover
# → Found: research-agent — Gars factual background on technical topics
writers = registry.discover
# → Found: writing-agent — Composes clear technical prose from analysis output
The orchestrator now only works with tags:
def a2a_orchestrator -> str:
researchers = registry.discover
t1 = registry.delegate
analysts = registry.discover
t2 = registry.delegate)
writers = registry.discover
t3 = registry.delegate)
return task_output
→ delegating to research-agent → delegating to analysis-agent → delegating to writing-agent 再看Answer,Choose Python for rapid development;Go for high‑throughput performance...
Pain Point 消失:If you later register writing-agent-v2,which carries same “writing” tag,orchestrator automatically picks it up – zero code changes.
The most powerful use case is letting an LLM read AgentCard catalog & decide which agents to call and in what order.
Available agents: research-agent: description: Gars factual background skills的观点是。analysis-agent: description: Analyzes research notes skills这方面,writing-agent: description: Composes technical prose 说到skills,
LLM 输出执行计划:
The runner n follows that plan:
Executing agents: → delegating to research-agent → delegating to analysis-agent → delegating to writing-agent Final answer: Choose Python for rapid development;Go for high‑throughput...
This demonstrates A2A’s ultimate goal – no pre‑written orchestrator is needed;LLM dynamically composes collaboration chain based on task requirements.
| 维度 / 协议 | MCP | A2A | |
|---|---|---|---|
| 解决什么问题 | Agent ↔ 工具/数据源 | Agent ↔ Agent | |
| 发现机制 | list_tools | discover | 工作单元 Tool call |
| 场景 | 推荐方法 |
|---|---|
| 同一代码库,调用确定 | 直接函数调用 |
| Agent 需要 调用外部工具 |
STOP
作为专业的SEO优化服务提供商,我们致力于通过科学、系统的搜索引擎优化策略,帮助企业在百度、Google等搜索引擎中获得更高的排名和流量。我们的服务涵盖网站结构优化、内容优化、技术SEO和链接建设等多个维度。
| 服务项目 | 基础套餐 | 标准套餐 | 高级定制 |
|---|---|---|---|
| 关键词优化数量 | 10-20个核心词 | 30-50个核心词+长尾词 | 80-150个全方位覆盖 |
| 内容优化 | 基础页面优化 | 全站内容优化+每月5篇原创 | 个性化内容策略+每月15篇原创 |
| 技术SEO | 基本技术检查 | 全面技术优化+移动适配 | 深度技术重构+性能优化 |
| 外链建设 | 每月5-10条 | 每月20-30条高质量外链 | 每月50+条多渠道外链 |
| 数据报告 | 月度基础报告 | 双周详细报告+分析 | 每周深度报告+策略调整 |
| 效果保障 | 3-6个月见效 | 2-4个月见效 | 1-3个月快速见效 |
我们的SEO优化服务遵循科学严谨的流程,确保每一步都基于数据分析和行业最佳实践:
全面检测网站技术问题、内容质量、竞争对手情况,制定个性化优化方案。
基于用户搜索意图和商业目标,制定全面的关键词矩阵和布局策略。
解决网站技术问题,优化网站结构,提升页面速度和移动端体验。
创作高质量原创内容,优化现有页面,建立内容更新机制。
获取高质量外部链接,建立品牌在线影响力,提升网站权威度。
持续监控排名、流量和转化数据,根据效果调整优化策略。
基于我们服务的客户数据统计,平均优化效果如下:
我们坚信,真正的SEO优化不仅仅是追求排名,而是通过提供优质内容、优化用户体验、建立网站权威,最终实现可持续的业务增长。我们的目标是与客户建立长期合作关系,共同成长。
Demand feedback