This chapter introduces you to the framework of Lagent, and provides links to detailed tutorials about Lagent.
Lagent is an open source LLM agent framework, which enables people to efficiently turn a large language model to agent. It also provides some typical tools to enlighten the ability of LLM, and the whole framework is shown below:
Lagent consists of 3 main parts, agents, llms, and actions.
- agents provides agent implementation, such as ReAct, AutoGPT.
- llms supports various large language models, including open-sourced models (Llama-2, InterLM) through HuggingFace models or closed-source models like GPT3.5/4.
- actions contains a series of actions, as well as an action executor to manage all actions.
Here is a detailed step-by-step guide to learn more about Lagent: