技术栈

react_agent

学不会lostfound
2 个月前
人工智能·aigc·langgraph·multi-agent·react_agent·planandexecute
五、AIGC大模型_09手动实现ReAct_Agent在上一章节中,我们了解到:create_react_agent 是 LangGraph 提供的一个预构建方法(from langgraph.prebuilt import create_react_agent),它可以将语言模型(LLM)和一组工具(Tools)结合起来,创建一个能够根据用户输入自动调用工具的智能代理,这个代理可以根据用户的请求,决定是否需要调用某个工具,并将工具的输出反馈给用户