智能体

term_id: agent

Category: application_paradigms

Definition

在 AI 中,智能体是代表用户或系统执行任务的实体。与仅对提示做出响应的被动模型不同,智能体具备规划能力,可以使用工具,并能根据其行动结果进行迭代和调整,从而更复杂地解决多步骤问题。

Summary

一种能够感知环境、进行推理并自主采取行动以实现特定目标的 AI 系统。

Key Concepts

  • 自主性
  • 工具使用
  • 规划
  • 反应循环

Use Cases

  • 自动化研究助手
  • 自编码机器人
  • 智能家居控制器

Code Example

1
2
agent = Agent(model=llm, tools=[search_tool, calculator])
result = agent.run("Find the latest news on AI and summarize it")