{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# How to use the prebuilt ReAct agent\n", "\n", "In this how-to we'll create a simple [ReAct](https://arxiv.org/abs/2210.03629) agent app that can check the weather. The app consists of an agent (LLM) and tools. As we interact with the app, we will first call the agent (LLM) to decide if we should use tools. Then we will run a loop: \n", "\n", "1. If the agent said to take an action (i.e. call tool), we'll run the tools and pass the results back to the agent\n", "2. If the agent did not ask to run tools, we will finish (respond to the user)\n", "\n", "
Prebuilt Agent
\n", "\n", "Please note that here will we use a prebuilt agent. One of the big benefits of LangGraph is that you can easily create your own agent architectures. So while it's fine to start here to build an agent quickly, we would strongly recommend learning how to build your own agent so that you can take full advantage of LangGraph. Read this guide to learn how to create your own ReAct agent from scratch.\n", "
\n", "