AI代理是使用LLMs自主执行任务的系统——规划、使用工具和采取行动来实现目标,而不仅仅是对单个提示做出响应。它们代表朝着更强大、更自主的AI应用程序发展的方向。
AI代理是什么
AI AGENT → an LLM-powered system that autonomously works toward a GOAL:
→ REASONS/plans → breaks a goal into steps
→ uses TOOLS → calls functions, APIs, searches, runs code, accesses data
→ takes ACTIONS and observes results → iterates (a loop of think → act → observe)
→ works toward the goal with some AUTONOMY (multi-step, not a single response)
→ beyond single Q&A → an LLM that can DO things over multiple steps
代理如何工作
→ the LLM is the 'brain' → decides what to do next based on the goal and observations
→ TOOLS extend its abilities → web search, code execution, APIs, databases, file access
→ a LOOP → the agent plans, acts (uses a tool), observes the result, and continues until
the goal is met
→ patterns: ReAct (reason+act), tool-calling/function-calling, planning, memory
