Agent Fundamentals(智能体基础)
知识库位置:
FDE Knowledge Base/03 Engineering/AI Engineering/Agent/Agent-Fundamentals.md关联架构文章:AI Agent Architecture(AI 智能体架构)
Agent(智能体)是能够根据目标:
- 理解请求
- 决定下一步
- 使用工具
- 根据结果继续行动
的 AI 系统模式。
最简单 Agent:
User(用户)↓LLM(Large Language Model,大语言模型)↓Tool(工具)↓Result(结果)↓Response(响应)更复杂 Agent:
Goal(目标)↓Plan(计划)↓Action(动作)↓Observation(观测结果)↓Decision(决策)↓Next Action(下一步动作)Agent ≠ Chatbot(智能体不等于聊天机器人)
Section titled “Agent ≠ Chatbot(智能体不等于聊天机器人)”Chatbot(聊天机器人):
Input → Response(输入 → 回复)Agent:
Input → Decide → Act → Observe → Continue(输入 → 决策 → 行动 → 观测 → 继续)When to Use(适用场景)
Section titled “When to Use(适用场景)”Agent 适合:
- 路径存在变化
- 需要动态选择工具
- 任务不能提前完全写死
When NOT to Use(不适用场景)
Section titled “When NOT to Use(不适用场景)”如果流程是稳定的:
A → B → C → D传统 Workflow(工作流)通常比 Agent:
- 更可靠
- 更便宜
- 更容易测试
FDE Principle(FDE 原则)
Section titled “FDE Principle(FDE 原则)”不要因为:
Agent 很热门
而把所有 Workflow 都 Agent 化。