标签: AI Engineering

14 篇文章

← 返回所有文章
Agentic 系统

Multi-Agent Collaboration: 多 Agent 协作模式与架构

单个 Agent 的能力有天花板——Context Window 有限、专业化受限、单点故障、串行瓶颈。本文系统拆解多 Agent 协作的四种核心模式(Supervisor-Worker、Peer-to-Peer、Pipeline、Dynamic Routing),深入 Agent 间通信机制、状态管理、错误处理与成本控制,并用 Python 从零实现一个 Supervisor-Worker 协作框架。

Agentic 系统

Prompt Engineering for Agents: 面向 Agent 的提示词工程

Agent 的 Prompt 不是聊天提示词,而是系统接口规范。本文系统拆解 Agent Prompt 的分层架构、四种关键设计模式(Router / Planner / Executor / Reflector)、Chain-of-Thought 的 Agent 化应用、Few-shot vs Zero-shot 的场景选择、Prompt 工程化实践(模板化 / 版本控制 / 测试 / 组合),以及 Context Window 管理策略。

Agentic 系统

The Agent Control Loop: Agent 运行时的核心抽象

Agent 的本质不是一次函数调用,而是一个可中断的控制循环。本文从状态机模型出发,深入剖析 Agent Control Loop 的每个阶段——OBSERVE、THINK、ACT、REFLECT,对比 ReAct 与 Plan-then-Execute 两种主流模式,讨论状态管理、错误处理与性能优化策略,并给出一个不依赖任何框架的完整 Python 实现。