Skip to content

Commit

Permalink
fix(docs): function call in partial
Browse files Browse the repository at this point in the history
  • Loading branch information
allenc97 authored Nov 1, 2024
1 parent 47ea264 commit 22519aa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/docs/tutorials/customer-support/customer-support.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"part_1_tools = [\n",
" TavilySearchResults(max_results=1),\n",
Expand Down Expand Up @@ -1893,7 +1893,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"part_2_tools = [\n",
" TavilySearchResults(max_results=1),\n",
Expand Down Expand Up @@ -2472,7 +2472,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"\n",
"# \"Read\"-only tools (such as retrievers) don't need a user confirmation to use\n",
Expand Down Expand Up @@ -3183,7 +3183,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"update_flight_safe_tools = [search_flights]\n",
"update_flight_sensitive_tools = [update_ticket_to_new_flight, cancel_ticket]\n",
Expand Down Expand Up @@ -3215,7 +3215,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"book_hotel_safe_tools = [search_hotels]\n",
"book_hotel_sensitive_tools = [book_hotel, update_hotel, cancel_hotel]\n",
Expand Down Expand Up @@ -3247,7 +3247,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"book_car_rental_safe_tools = [search_car_rentals]\n",
"book_car_rental_sensitive_tools = [\n",
Expand Down Expand Up @@ -3282,7 +3282,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"\n",
"book_excursion_safe_tools = [search_trip_recommendations]\n",
"book_excursion_sensitive_tools = [book_excursion, update_excursion, cancel_excursion]\n",
Expand Down Expand Up @@ -3389,7 +3389,7 @@
" ),\n",
" (\"placeholder\", \"{messages}\"),\n",
" ]\n",
").partial(time=datetime.now())\n",
").partial(time=datetime.now)\n",
"primary_assistant_tools = [\n",
" TavilySearchResults(max_results=1),\n",
" search_flights,\n",
Expand Down

0 comments on commit 22519aa

Please sign in to comment.