Skip to content

Commit

Permalink
upgrade react example
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarrata committed Nov 26, 2024
1 parent 52c5e49 commit a0612ec
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lab-materials/07-agent-frameworks/7.1-react-agents-langgraph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@
"id": "f64a7075",
"metadata": {},
"source": [
"#### 7.1 ReAct in Action!\n",
"### 7.1 ReAct in Action!\n",
"\n",
"Start a complex user query to the agent. \n",
"\n",
Expand All @@ -565,7 +565,7 @@
"\n",
"Let's see the process:\n",
"\n",
"1. The agent searches for the largest lake using DuckDuckGo and returns the Caspian Sea as the result."
"##### 1. The agent searches for the largest lake using DuckDuckGo and returns the Caspian Sea as the result."
]
},
{
Expand Down Expand Up @@ -620,8 +620,8 @@
"id": "65c6c357",
"metadata": {},
"source": [
"2. Followup with the user query for obtaining the lake's area. \n",
"3. The agent calculates it using a Python calculator tool and outputs the area of the Caspian Sea as 371,000 square kilometers."
"##### 2. Followup with the user query for obtaining the lake's area. \n",
"##### 3. The agent calculates it using a Python calculator tool and outputs the area of the Caspian Sea as 371,000 square kilometers."
]
},
{
Expand Down Expand Up @@ -675,7 +675,7 @@
"id": "0ce00f22",
"metadata": {},
"source": [
"4. Finally a user query to both tools and ReAct patterns to calculate the distance from Baku to the Caspian Sea. "
"##### 4. Finally a user query to both tools and ReAct patterns to calculate the distance from Baku to the Caspian Sea. "
]
},
{
Expand Down Expand Up @@ -799,7 +799,7 @@
"id": "4449686f",
"metadata": {},
"source": [
"The ReAct agent:\n",
"### The ReAct agent:\n",
"\n",
"1. Retrieves coordinates, \n",
"2. Generates the python code to execute a math calculation in the system\n",
Expand All @@ -809,6 +809,12 @@
"\n",
"All with memory included!"
]
},
{
"cell_type": "markdown",
"id": "3577c47f",
"metadata": {},
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit a0612ec

Please sign in to comment.