You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/create-react-agent-hitl.ipynb
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -121,14 +121,14 @@
121
121
"output_type": "stream",
122
122
"text": [
123
123
"0.2.0\n",
124
-
"17:25:17 langgraph.checkpoint.redis INFO Redis client is a standalone client\n"
124
+
"20:54:48 langgraph.checkpoint.redis INFO Redis client is a standalone client\n"
125
125
]
126
126
},
127
127
{
128
128
"name": "stderr",
129
129
"output_type": "stream",
130
130
"text": [
131
-
"/tmp/ipykernel_253/104821471.py:41: LangGraphDeprecatedSinceV10: create_react_agent has been moved to `langchain.agents`. Please update your import to `from langchain.agents import create_agent`. Deprecated in LangGraph V1.0 to be removed in V2.0.\n",
131
+
"/tmp/ipykernel_196/104821471.py:41: LangGraphDeprecatedSinceV10: create_react_agent has been moved to `langchain.agents`. Please update your import to `from langchain.agents import create_agent`. Deprecated in LangGraph V1.0 to be removed in V2.0.\n",
132
132
" graph = create_react_agent(\n"
133
133
]
134
134
}
@@ -217,11 +217,11 @@
217
217
"================================\u001b[1m Human Message \u001b[0m=================================\n",
218
218
"\n",
219
219
"what is the weather in SF, CA?\n",
220
-
"17:25:18 httpx INFO HTTP Request: POST https://api.openai.com/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
220
+
"20:54:49 httpx INFO HTTP Request: POST https://api.openai.com/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
221
221
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
222
222
"Tool Calls:\n",
223
-
" get_weather (call_5pXxdiKNI2XosSX5Vt9sbuBv)\n",
224
-
" Call ID: call_5pXxdiKNI2XosSX5Vt9sbuBv\n",
223
+
" get_weather (call_JQR9gMUJPiZEZ1HgkJsUYIYA)\n",
224
+
" Call ID: call_JQR9gMUJPiZEZ1HgkJsUYIYA\n",
225
225
" Args:\n",
226
226
" location: SF, CA\n"
227
227
]
@@ -254,7 +254,7 @@
254
254
"name": "stdout",
255
255
"output_type": "stream",
256
256
"text": [
257
-
"17:25:18 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n",
257
+
"20:54:49 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n",
258
258
"Next step: ()\n"
259
259
]
260
260
}
@@ -284,11 +284,11 @@
284
284
"name": "stdout",
285
285
"output_type": "stream",
286
286
"text": [
287
-
"17:25:18 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n",
287
+
"20:54:49 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n",
288
288
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
289
289
"Tool Calls:\n",
290
-
" get_weather (call_5pXxdiKNI2XosSX5Vt9sbuBv)\n",
291
-
" Call ID: call_5pXxdiKNI2XosSX5Vt9sbuBv\n",
290
+
" get_weather (call_JQR9gMUJPiZEZ1HgkJsUYIYA)\n",
291
+
" Call ID: call_JQR9gMUJPiZEZ1HgkJsUYIYA\n",
292
292
" Args:\n",
293
293
" location: SF, CA\n"
294
294
]
@@ -318,16 +318,16 @@
318
318
"name": "stdout",
319
319
"output_type": "stream",
320
320
"text": [
321
-
"17:25:18 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n",
322
-
"17:25:18 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n"
321
+
"20:54:49 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n",
322
+
"20:54:49 langgraph WARNING Ignoring invalid packet type <class 'dict'> in pending sends\n"
"00:25:12 langgraph.checkpoint.redis INFO Redis client is a standalone client\n",
129
+
"00:25:12 redisvl.index.index INFO Index already exists, not overwriting.\n",
130
+
"00:25:12 redisvl.index.index INFO Index already exists, not overwriting.\n",
131
+
"00:25:12 redisvl.index.index INFO Index already exists, not overwriting.\n"
132
+
]
133
+
},
134
+
{
135
+
"name": "stderr",
136
+
"output_type": "stream",
137
+
"text": [
138
+
"/tmp/ipykernel_1924/1444546798.py:39: LangGraphDeprecatedSinceV10: create_react_agent has been moved to `langchain.agents`. Please update your import to `from langchain.agents import create_agent`. Deprecated in LangGraph V1.0 to be removed in V2.0.\n",
"inputs = {\"messages\": [(\"user\", \"What's the weather in NYC?\")]}\n",
@@ -204,10 +256,46 @@
204
256
},
205
257
{
206
258
"cell_type": "code",
207
-
"execution_count": null,
259
+
"execution_count": 6,
208
260
"id": "187479f9-32fa-4611-9487-cf816ba2e147",
209
261
"metadata": {},
210
-
"outputs": [],
262
+
"outputs": [
263
+
{
264
+
"name": "stdout",
265
+
"output_type": "stream",
266
+
"text": [
267
+
"================================\u001b[1m Human Message \u001b[0m=================================\n",
268
+
"\n",
269
+
"What's it known for?\n",
270
+
"00:25:21 httpx INFO HTTP Request: POST https://api.openai.com/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
271
+
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
272
+
"\n",
273
+
"New York City is known for many things, including:\n",
274
+
"\n",
275
+
"1. **Landmarks and Attractions**: The Statue of Liberty, Times Square, Central Park, Empire State Building, and Broadway theaters.\n",
276
+
"\n",
277
+
"2. **Cultural Diversity**: A melting pot of cultures, languages, and cuisines from around the world.\n",
278
+
"\n",
279
+
"3. **Financial Hub**: Home to Wall Street and the New York Stock Exchange, making it a global financial center.\n",
280
+
"\n",
281
+
"4. **Arts and Entertainment**: Renowned museums like the Metropolitan Museum of Art and the Museum of Modern Art, as well as a vibrant music and theater scene.\n",
282
+
"\n",
283
+
"5. **Fashion**: A major fashion capital, hosting New York Fashion Week and housing numerous designer boutiques.\n",
284
+
"\n",
285
+
"6. **Cuisine**: Famous for its diverse food scene, including iconic foods like New York-style pizza and bagels.\n",
286
+
"\n",
287
+
"7. **Media and Publishing**: Headquarters for major media companies and publishers, including The New York Times and NBC.\n",
288
+
"\n",
289
+
"8. **Skyscrapers**: Known for its impressive skyline, featuring some of the tallest buildings in the world.\n",
290
+
"\n",
291
+
"9. **Public Transportation**: An extensive subway system that operates 24/7, making it easy to navigate the city.\n",
292
+
"\n",
293
+
"10. **Sports**: Home to several major sports teams, including the New York Yankees, New York Mets, New York Knicks, and New York Giants.\n",
294
+
"\n",
295
+
"These are just a few highlights of what makes New York City a unique and vibrant place.\n"
296
+
]
297
+
}
298
+
],
211
299
"source": [
212
300
"inputs = {\"messages\": [(\"user\", \"What's it known for?\")]}\n",
0 commit comments