ailearn

AI Agent开发 - 构建智能代理系统

ReAct: Thought -> Action -> Observation

访问-- -- --

一、AI Agent概述

AI Agent = 大模型 + 记忆 + 工具 + 规划

二、工具系统

from langchain.tools import tool
@tool
def get_time() -> str:
    """Get current time"""
    import datetime
    return datetime.datetime.now().isoformat()

三、规划系统

ReAct: Thought -> Action -> Observation

四、记忆系统

  • 对话记忆
  • 实体记忆
  • 长期记忆

最后更新: 2026年4月16日

访问 --

讨论与反馈