Files
nexus/wiki/concepts/AI-Agent.md

43 lines
1.8 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: "AI Agent"
type: concept
tags: [ai-agent, autonomous, llm]
last_updated: 2026-04-25
---
## Definition
AI AgentAI 智能体是围绕大语言模型LLM构建的循环控制系统具备感知目标、规划步骤、执行动作、反思结果的能力实现真正的自主行动。
## Core Loop
AI Agent 通过一个连续循环过程实现其目标:
1. **获取任务**:接收高层目标(用户或自动触发)
2. **扫描场景**:感知环境,获取上下文信息(工具/记忆/资源)
3. **仔细思考**:由推理模型驱动,分析任务与场景,制定行动计划
4. **采取行动**调用适当工具API/代码/数据库),作用于外部世界
5. **观察并迭代**观察行动结果更新上下文循环回到步骤3
## Key Capabilities
- **自主决策**:根据上下文自主选择行动策略
- **工具使用**:调用 API、执行代码、查询数据库
- **多步骤规划**:分解复杂任务为可执行步骤
- **自我反思**:基于执行结果调整下一步行动
## Role in AI System Architecture
- **执行层**AI Agent 作为 AI 系统的"行动系统",负责将决策转化为实际行动
- 使用 [[Large Language Model]] 进行推理
- 使用 [[RAG]] 确保信息来源准确
## Related Concepts
- [[Large Language Model]] — Agent 的"大脑"
- [[RAG]] — Agent 的"记忆"
- [[Model Context Protocol]] — Agent 连接外部工具的标准协议
- [[ReAct Pattern]] — Agent 的推理-行动模式
- [[Agentic AI]] — 具备自主决策能力的 AI 系统
## Sources
- [[llms-rag-ai-agent-三个到底什么区别]]
- [[designing-for-agentic-ai]]
- [[n8n-full-tutorial-building-ai-agents-in-2025-for-beginners]]
- [[大模型相关术语和框架总结llm-mcp-prompt-rag-vllm-token-数据蒸馏]]