构建基于大模型的Autonomous Agents案例
Tools for Autonomous Agents
上文中,我们介绍了TaskPrioritizationChain和TaskCreationChain这两个核心链,接下来,我们需要考虑如何进行调用工具,我们对工具进行了基本的处理。
1. from langchain.agents import ZeroShotAgent, Tool, AgentExecutor
2. from langchain import OpenAI, SerpAPIWrapper, LLMChain
3.
4. todo_prompt = PromptTemplate.from_template(