Skip to content

Commit b5d817b

Browse files
Fix test errors
1 parent 0c0207a commit b5d817b

File tree

1 file changed

+9
-51
lines changed

1 file changed

+9
-51
lines changed

python-recipes/agents/05_agent_framework_agent.ipynb

Lines changed: 9 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -430,55 +430,14 @@
430430
"id": "fO2OVM7lTQPS",
431431
"outputId": "1d4200a4-83f2-4bd5-df12-04ef3968c0d5"
432432
},
433-
"outputs": [
434-
{
435-
"name": "stdout",
436-
"output_type": "stream",
437-
"text": [
438-
"1118\n",
439-
"This place is the best!\n",
440-
"First let me start by saying I am a local who eats here at least once a week if not twice.I travel for a living and try a lot of different restaurants and Nani's is by far the bestCuban food I have ever eaten. Everything is fresh & just so full of flavor! My favorites are the Empanadas, Cuban sandwich, Crab Cakes and of course the black beans. When you go there, ask for Marie's homemade hot sauce & Mojo. Ray & Marie are the nicest & really make you feel at home.\n",
441-
"name: Nanis Coffee\n",
442-
"address: 2739 Geary Blvd\n",
443-
"locality: San Francisco\n",
444-
"latitude: 37.782187\n",
445-
"longitude: -122.448613\n",
446-
"cuisine: ['Coffee', 'Sandwiches', 'Cafe', 'Bagels', 'Tea']\n",
447-
"price: 1\n",
448-
"rating: 5.0\n",
449-
"hours: {'monday': [['7:00', '17:30']], 'tuesday': [['7:00', '17:30']], 'wednesday': [['7:00', '17:30']], 'thursday': [['7:00', '17:30']], 'friday': [['7:00', '17:30']], 'saturday': [['8:30', '17:00']], 'sunday': [['8:30', '15:00']]}\n",
450-
"parking: True\n",
451-
"parking_valet: False\n",
452-
"parking_garage: False\n",
453-
"parking_street: True\n",
454-
"parking_lot: False\n",
455-
"parking_validated: False\n",
456-
"parking_free: False\n",
457-
"smoking: False\n",
458-
"accessible_wheelchair: True\n",
459-
"wifi: True\n",
460-
"meal_breakfast: True\n",
461-
"meal_deliver: True\n",
462-
"meal_dinner: True\n",
463-
"meal_lunch: True\n",
464-
"meal_takeout: True\n",
465-
"meal_cater: False\n",
466-
"options_healthy: True\n",
467-
"options_organic: False\n",
468-
"options_vegetarian: True\n",
469-
"options_vegan: False\n",
470-
"options_glutenfree: False\n",
471-
"options_lowfat: False\n"
472-
]
473-
}
474-
],
433+
"outputs": [],
475434
"source": [
476-
"all=await provider.search_all()\n",
477-
"# Number of Reviews\n",
478-
"print(len(all))\n",
479-
"\n",
480-
"# Sample Review\n",
481-
"# print(all[100][\"content\"])\n"
435+
"# Viewing sample reviews \n",
436+
"# all=await provider.search_all()\n",
437+
"# # Number of Reviews\n",
438+
"# print(len(all))\n",
439+
"# # Sample Review\n",
440+
"# # print(all[100][\"content\"])\n"
482441
]
483442
},
484443
{
@@ -568,7 +527,7 @@
568527
},
569528
{
570529
"cell_type": "code",
571-
"execution_count": 23,
530+
"execution_count": null,
572531
"metadata": {
573532
"colab": {
574533
"base_uri": "https://localhost:8080/"
@@ -662,7 +621,6 @@
662621
}
663622
],
664623
"source": [
665-
"\n",
666624
"import asyncio\n",
667625
"\n",
668626
"async def streaming_example(agent, query) -> None:\n",
@@ -678,7 +636,7 @@
678636
" Group them into categories based on their cuisine and price, and talk about the \\\n",
679637
" top rated restaurants in each category.\"\n",
680638
"\n",
681-
"await streaming_example(review_agent, writing_task)"
639+
"# await streaming_example(review_agent, writing_task)"
682640
]
683641
},
684642
{

0 commit comments

Comments
 (0)