.. _examples.extensions.langchain.langchain_agent: LangChain agent =============== The agent chooses a sequence of actions to respond to a human's question. It has access to a set of tools. The agent memorizes the conversation history and can use it to make decisions. .. literalinclude:: ../../../examples/extensions/langchain/langchain_agent.py :language: python :caption: See `langchain_agent.py `_ on GitHub. :lines: 7-