MartinHummel/AlfredAgent
0
1{2 "cells": [3 {4 "cell_type": "code",5 "execution_count": 11,6 "metadata": {},7 "outputs": [8 {9 "name": "stdout",10 "output_type": "stream",11 "text": [12 "Requirement already satisfied: smolagents[litellm] in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (1.10.0)\n",13 "Requirement already satisfied: huggingface-hub>=0.28.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (0.29.1)\n",14 "Requirement already satisfied: requests>=2.32.3 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (2.32.3)\n",15 "Requirement already satisfied: rich>=13.9.4 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (13.9.4)\n",16 "Requirement already satisfied: pandas>=2.2.3 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (2.2.3)\n",17 "Requirement already satisfied: jinja2>=3.1.4 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (3.1.5)\n",18 "Requirement already satisfied: pillow>=11.0.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (11.1.0)\n",19 "Requirement already satisfied: markdownify>=0.14.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (1.0.0)\n",20 "Requirement already satisfied: duckduckgo-search>=6.3.7 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (7.5.0)\n",21 "Requirement already satisfied: python-dotenv in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from smolagents[litellm]) (1.0.1)\n",22 "Collecting litellm>=1.60.2 (from smolagents[litellm])\n",23 " Downloading litellm-1.63.2-py3-none-any.whl (6.9 MB)\n",24 "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.9/6.9 MB\u001b[0m \u001b[31m35.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",25 "\u001b[?25hRequirement already satisfied: click>=8.1.8 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from duckduckgo-search>=6.3.7->smolagents[litellm]) (8.1.8)\n",26 "Requirement already satisfied: primp>=0.14.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from duckduckgo-search>=6.3.7->smolagents[litellm]) (0.14.0)\n",27 "Requirement already satisfied: lxml>=5.3.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from duckduckgo-search>=6.3.7->smolagents[litellm]) (5.3.1)\n",28 "Requirement already satisfied: filelock in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from huggingface-hub>=0.28.0->smolagents[litellm]) (3.17.0)\n",29 "Requirement already satisfied: fsspec>=2023.5.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from huggingface-hub>=0.28.0->smolagents[litellm]) (2024.9.0)\n",30 "Requirement already satisfied: packaging>=20.9 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from huggingface-hub>=0.28.0->smolagents[litellm]) (24.1)\n",31 "Requirement already satisfied: pyyaml>=5.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from huggingface-hub>=0.28.0->smolagents[litellm]) (6.0.2)\n",32 "Requirement already satisfied: tqdm>=4.42.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from huggingface-hub>=0.28.0->smolagents[litellm]) (4.66.5)\n",33 "Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from huggingface-hub>=0.28.0->smolagents[litellm]) (4.12.2)\n",34 "Requirement already satisfied: MarkupSafe>=2.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from jinja2>=3.1.4->smolagents[litellm]) (3.0.2)\n",35 "Requirement already satisfied: aiohttp in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from litellm>=1.60.2->smolagents[litellm]) (3.10.10)\n",36 "Requirement already satisfied: httpx>=0.23.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from litellm>=1.60.2->smolagents[litellm]) (0.27.2)\n",37 "Collecting importlib-metadata>=6.8.0 (from litellm>=1.60.2->smolagents[litellm])\n",38 " Downloading importlib_metadata-8.6.1-py3-none-any.whl (26 kB)\n",39 "Collecting jsonschema<5.0.0,>=4.22.0 (from litellm>=1.60.2->smolagents[litellm])\n",40 " Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)\n",41 "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m88.5/88.5 kB\u001b[0m \u001b[31m29.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",42 "\u001b[?25hCollecting openai>=1.61.0 (from litellm>=1.60.2->smolagents[litellm])\n",43 " Downloading openai-1.65.4-py3-none-any.whl (473 kB)\n",44 "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m473.5/473.5 kB\u001b[0m \u001b[31m70.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",45 "\u001b[?25hRequirement already satisfied: pydantic<3.0.0,>=2.0.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from litellm>=1.60.2->smolagents[litellm]) (2.9.2)\n",46 "Requirement already satisfied: tiktoken>=0.7.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from litellm>=1.60.2->smolagents[litellm]) (0.8.0)\n",47 "Collecting tokenizers (from litellm>=1.60.2->smolagents[litellm])\n",48 " Using cached tokenizers-0.21.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)\n",49 "Requirement already satisfied: beautifulsoup4<5,>=4.9 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from markdownify>=0.14.1->smolagents[litellm]) (4.12.3)\n",50 "Requirement already satisfied: six<2,>=1.15 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from markdownify>=0.14.1->smolagents[litellm]) (1.16.0)\n",51 "Requirement already satisfied: numpy>=1.23.2 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from pandas>=2.2.3->smolagents[litellm]) (1.26.4)\n",52 "Requirement already satisfied: python-dateutil>=2.8.2 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from pandas>=2.2.3->smolagents[litellm]) (2.9.0.post0)\n",53 "Requirement already satisfied: pytz>=2020.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from pandas>=2.2.3->smolagents[litellm]) (2024.2)\n",54 "Requirement already satisfied: tzdata>=2022.7 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from pandas>=2.2.3->smolagents[litellm]) (2024.2)\n",55 "Requirement already satisfied: charset-normalizer<4,>=2 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from requests>=2.32.3->smolagents[litellm]) (3.4.0)\n",56 "Requirement already satisfied: idna<4,>=2.5 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from requests>=2.32.3->smolagents[litellm]) (3.10)\n",57 "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from requests>=2.32.3->smolagents[litellm]) (2.2.3)\n",58 "Requirement already satisfied: certifi>=2017.4.17 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from requests>=2.32.3->smolagents[litellm]) (2024.8.30)\n",59 "Requirement already satisfied: markdown-it-py>=2.2.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from rich>=13.9.4->smolagents[litellm]) (3.0.0)\n",60 "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from rich>=13.9.4->smolagents[litellm]) (2.18.0)\n",61 "Requirement already satisfied: soupsieve>1.2 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from beautifulsoup4<5,>=4.9->markdownify>=0.14.1->smolagents[litellm]) (2.6)\n",62 "Requirement already satisfied: anyio in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from httpx>=0.23.0->litellm>=1.60.2->smolagents[litellm]) (4.6.0)\n",63 "Requirement already satisfied: httpcore==1.* in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from httpx>=0.23.0->litellm>=1.60.2->smolagents[litellm]) (1.0.6)\n",64 "Requirement already satisfied: sniffio in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from httpx>=0.23.0->litellm>=1.60.2->smolagents[litellm]) (1.3.1)\n",65 "Requirement already satisfied: h11<0.15,>=0.13 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from httpcore==1.*->httpx>=0.23.0->litellm>=1.60.2->smolagents[litellm]) (0.14.0)\n",66 "Collecting zipp>=3.20 (from importlib-metadata>=6.8.0->litellm>=1.60.2->smolagents[litellm])\n",67 " Downloading zipp-3.21.0-py3-none-any.whl (9.6 kB)\n",68 "Requirement already satisfied: attrs>=22.2.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from jsonschema<5.0.0,>=4.22.0->litellm>=1.60.2->smolagents[litellm]) (24.2.0)\n",69 "Collecting jsonschema-specifications>=2023.03.6 (from jsonschema<5.0.0,>=4.22.0->litellm>=1.60.2->smolagents[litellm])\n",70 " Downloading jsonschema_specifications-2024.10.1-py3-none-any.whl (18 kB)\n",71 "Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.22.0->litellm>=1.60.2->smolagents[litellm])\n",72 " Downloading referencing-0.36.2-py3-none-any.whl (26 kB)\n",73 "Collecting rpds-py>=0.7.1 (from jsonschema<5.0.0,>=4.22.0->litellm>=1.60.2->smolagents[litellm])\n",74 " Downloading rpds_py-0.23.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (386 kB)\n",75 "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m386.3/386.3 kB\u001b[0m \u001b[31m66.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",76 "\u001b[?25hRequirement already satisfied: mdurl~=0.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich>=13.9.4->smolagents[litellm]) (0.1.2)\n",77 "Requirement already satisfied: distro<2,>=1.7.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from openai>=1.61.0->litellm>=1.60.2->smolagents[litellm]) (1.9.0)\n",78 "Requirement already satisfied: jiter<1,>=0.4.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from openai>=1.61.0->litellm>=1.60.2->smolagents[litellm]) (0.6.1)\n",79 "Requirement already satisfied: annotated-types>=0.6.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from pydantic<3.0.0,>=2.0.0->litellm>=1.60.2->smolagents[litellm]) (0.7.0)\n",80 "Requirement already satisfied: pydantic-core==2.23.4 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from pydantic<3.0.0,>=2.0.0->litellm>=1.60.2->smolagents[litellm]) (2.23.4)\n",81 "Requirement already satisfied: regex>=2022.1.18 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from tiktoken>=0.7.0->litellm>=1.60.2->smolagents[litellm]) (2024.9.11)\n",82 "Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from aiohttp->litellm>=1.60.2->smolagents[litellm]) (2.4.3)\n",83 "Requirement already satisfied: aiosignal>=1.1.2 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from aiohttp->litellm>=1.60.2->smolagents[litellm]) (1.3.1)\n",84 "Requirement already satisfied: frozenlist>=1.1.1 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from aiohttp->litellm>=1.60.2->smolagents[litellm]) (1.4.1)\n",85 "Requirement already satisfied: multidict<7.0,>=4.5 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from aiohttp->litellm>=1.60.2->smolagents[litellm]) (6.1.0)\n",86 "Requirement already satisfied: yarl<2.0,>=1.12.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from aiohttp->litellm>=1.60.2->smolagents[litellm]) (1.15.0)\n",87 "Requirement already satisfied: propcache>=0.2.0 in /home/martin/.pyenv/versions/3.11.4/envs/agents/lib/python3.11/site-packages (from yarl<2.0,>=1.12.0->aiohttp->litellm>=1.60.2->smolagents[litellm]) (0.2.0)\n",88 "Installing collected packages: zipp, rpds-py, referencing, importlib-metadata, tokenizers, openai, jsonschema-specifications, jsonschema, litellm\n",89 " Attempting uninstall: openai\n",90 " Found existing installation: openai 1.51.2\n",91 " Uninstalling openai-1.51.2:\n",92 " Successfully uninstalled openai-1.51.2\n",93 "Successfully installed importlib-metadata-8.6.1 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 litellm-1.63.2 openai-1.65.4 referencing-0.36.2 rpds-py-0.23.1 tokenizers-0.21.0 zipp-3.21.0\n",94 "\n",95 "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.1.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.0.1\u001b[0m\n",96 "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"97 ]98 }99 ],100 "source": [101 "\n",102 "!pip install 'smolagents[litellm]'"103 ]104 },105 {106 "cell_type": "code",107 "execution_count": 24,108 "metadata": {},109 "outputs": [110 {111 "data": {112 "application/vnd.jupyter.widget-view+json": {113 "model_id": "685a5c8515104215a7e1aa805b0985b2",114 "version_major": 2,115 "version_minor": 0116 },117 "text/plain": [118 "VBox(children=(HTML(value='<center> <img\\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.sv…"119 ]120 },121 "metadata": {},122 "output_type": "display_data"123 }124 ],125 "source": [126 "from huggingface_hub import notebook_login\n",127 "\n",128 "notebook_login()"129 ]130 },131 {132 "cell_type": "code",133 "execution_count": null,134 "metadata": {},135 "outputs": [136 {137 "data": {138 "text/html": [139 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">╭──────────────────────────────────────────────────── </span><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">New run</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ────────────────────────────────────────────────────╮</span>\n",140 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",141 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">Search for the best music recommendations for a party at the Wayne's mansion.</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",142 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",143 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ LiteLLMModel - gemini/gemini-2.0-flash-lite-001 ───────────────────────────────────────────────────────────────╯</span>\n",144 "</pre>\n"145 ],146 "text/plain": [147 "\u001b[38;2;212;183;2m╭─\u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[1;38;2;212;183;2mNew run\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╮\u001b[0m\n",148 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",149 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mSearch for the best music recommendations for a party at the Wayne's mansion.\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",150 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",151 "\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m LiteLLMModel - gemini/gemini-2.0-flash-lite-001 \u001b[0m\u001b[38;2;212;183;2m──────────────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"152 ]153 },154 "metadata": {},155 "output_type": "display_data"156 },157 {158 "data": {159 "text/html": [160 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",161 "</pre>\n"162 ],163 "text/plain": [164 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m1\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"165 ]166 },167 "metadata": {},168 "output_type": "display_data"169 },170 {171 "data": {172 "text/html": [173 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",174 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">party_music_search </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> web_search(query</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"best music for a party\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",175 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(party_music_search)</span><span style=\"background-color: #272822\"> </span> \n",176 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",177 "</pre>\n"178 ],179 "text/plain": [180 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",181 " \u001b[38;2;248;248;242;48;2;39;40;34mparty_music_search\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mweb_search\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mquery\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mbest music for a party\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",182 " \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mparty_music_search\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",183 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"184 ]185 },186 "metadata": {},187 "output_type": "display_data"188 },189 {190 "data": {191 "text/html": [192 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",193 "## Search Results\n",194 "\n",195 "[The 75 Best Party Songs That Will Get Everyone Dancing - \n",196 "Gear4music](https://www.gear4music.com/blog/best-party-songs/)\n",197 "The best party songs 1. \"September\" - Earth, Wind & Fire (1978) Quite possibly the best party song. An infectious \n",198 "mix of funk and soul, \"September\" is celebrated for its upbeat melody and \"ba-dee-ya\" chorus, making it a timeless \n",199 "dance favorite.\n",200 "\n",201 "[Best Songs To Party: DJ's Ultimate Party Songs Playlist - \n",202 "Top40Weekly.com](https://top40weekly.com/best-songs-to-party/)\n",203 "Best Songs To Party: DJ's Ultimate Party Songs Playlist. If you're looking for the ultimate playlist to get your \n",204 "party started, look no further than this best party songs playlist. Whether you're hosting a birthday bash, a \n",205 "backyard barbecue, or just a night in with friends, the right music can make all the difference. From classic hits \n",206 "to ...\n",207 "\n",208 "[45 Songs That Get Your Event Guests on the Dance Floor Every \n",209 "Time](https://hub.theeventplannerexpo.com/entertainment/35-songs-that-get-your-event-guests-on-the-dance-floor-ever\n",210 "y-time)\n",211 "You'll know your client's event best, including music genre preferences and styles. But these songs are wildly \n",212 "popular among many generations and are always great to have on standby should your dance guests need a boost. Party\n",213 "Songs \"Flowers\" by Miley Cyrus (2023) \"TQG\" by KAROL G & Shakira (2023) \"TRUSTFALL\" by P!nk (2023)\n",214 "\n",215 "[40 Best Party Songs | Songs To Dance To, Ranked By Our Editors - Time \n",216 "Out](https://www.timeout.com/music/best-party-songs)\n",217 "The best is when you go for the extended version, and find yourself in the midst of the intro for about 11 minutes.\n",218 "But whichever version you go for, this is the party song, in every way. She ...\n",219 "\n",220 "[The Top 100 Best Party Songs of All Time - \n",221 "LiveAbout](https://www.liveabout.com/top-best-party-songs-of-all-time-3248355)\n",222 "\"Macarena\" then spent 14 weeks at No. 1 on the U.S. pop singles chart. For more than a year this was one of the \n",223 "most popular special event songs in the United States. It still works well as a charming party song encouraging \n",224 "everyone to join in on the simple dance.\n",225 "\n",226 "[50+ Best Songs For Your Next Party in 2025 - Aleka's \n",227 "Get-Together](https://alekasgettogether.com/top-songs-for-any-party/)\n",228 "Whether you're planning a How To Host The Best Party At Home or just want to liven up your playlist, we've got you \n",229 "covered with 100 crowd-pleasing tunes. From timeless classics to modern hits, these songs are guaranteed to keep \n",230 "the energy high and the good times rolling all night long. 50 Popular Party Songs. Uptown Funk - Mark Ronson ft ...\n",231 "\n",232 "[The 101 Best Party Songs Of All Time - Music Grotto](https://www.musicgrotto.com/best-party-songs/)\n",233 "A pounding beat and dramatic vocals make this song one of the best party songs to come out of Europe, and the \n",234 "song's music video features a strange and compelling premise of a dead man being reanimated and falling in love \n",235 "with a woman. Tjis Verwest, (a.k.a. Tiësto) composed the song with help from James Bell, Julia Karlsson, and Anton \n",236 "Rundberg.\n",237 "\n",238 "[Top 200 Most Requested Songs - DJ Event Planner](https://djeventplanner.com/mostrequested.htm)\n",239 "Based on over 2 million requests using the DJ Event Planner song request system, this is a list of the most \n",240 "requested songs of the past year. Sign Up For A Free Trial Click To Hide Me Top 200 Decades Special Songs Print \n",241 "Download PDF UK Edition Last Year's List Sign Up For A Free Trial\n",242 "\n",243 "[20 Best Celebration Songs for Your Party Playlist - The Knot](https://www.theknot.com/content/celebration-songs)\n",244 "Celebrate good times with the best celebration songs, perfect for bringing everyone to the dance floor to \n",245 "scream-sing your favorite celebratory lyrics. Earn cash as you plan. Get a $20 gift card for every 200 points. ... \n",246 "Few celebration party songs hold a candle to this one by Rare Earth, which has been a must-have addition to any \n",247 "wedding song ...\n",248 "\n",249 "[100 Best Party Songs: The Ultimate Party Playlist](https://audiocaptain.com/best-party-songs/)\n",250 "Best 2000s Party Songs. Stylistically speaking, music that dominated the charts in the 2000s was nondescript.. \n",251 "There was not much new regarding musical directions. Club and hip hop dominated the charts while indie acts and \n",252 "some rock groups still had influence.\n",253 "\n",254 "Out: None\n",255 "</pre>\n"256 ],257 "text/plain": [258 "\u001b[1mExecution logs:\u001b[0m\n",259 "## Search Results\n",260 "\n",261 "[The 75 Best Party Songs That Will Get Everyone Dancing - \n",262 "Gear4music](https://www.gear4music.com/blog/best-party-songs/)\n",263 "The best party songs 1. \"September\" - Earth, Wind & Fire (1978) Quite possibly the best party song. An infectious \n",264 "mix of funk and soul, \"September\" is celebrated for its upbeat melody and \"ba-dee-ya\" chorus, making it a timeless \n",265 "dance favorite.\n",266 "\n",267 "[Best Songs To Party: DJ's Ultimate Party Songs Playlist - \n",268 "Top40Weekly.com](https://top40weekly.com/best-songs-to-party/)\n",269 "Best Songs To Party: DJ's Ultimate Party Songs Playlist. If you're looking for the ultimate playlist to get your \n",270 "party started, look no further than this best party songs playlist. Whether you're hosting a birthday bash, a \n",271 "backyard barbecue, or just a night in with friends, the right music can make all the difference. From classic hits \n",272 "to ...\n",273 "\n",274 "[45 Songs That Get Your Event Guests on the Dance Floor Every \n",275 "Time](https://hub.theeventplannerexpo.com/entertainment/35-songs-that-get-your-event-guests-on-the-dance-floor-ever\n",276 "y-time)\n",277 "You'll know your client's event best, including music genre preferences and styles. But these songs are wildly \n",278 "popular among many generations and are always great to have on standby should your dance guests need a boost. Party\n",279 "Songs \"Flowers\" by Miley Cyrus (2023) \"TQG\" by KAROL G & Shakira (2023) \"TRUSTFALL\" by P!nk (2023)\n",280 "\n",281 "[40 Best Party Songs | Songs To Dance To, Ranked By Our Editors - Time \n",282 "Out](https://www.timeout.com/music/best-party-songs)\n",283 "The best is when you go for the extended version, and find yourself in the midst of the intro for about 11 minutes.\n",284 "But whichever version you go for, this is the party song, in every way. She ...\n",285 "\n",286 "[The Top 100 Best Party Songs of All Time - \n",287 "LiveAbout](https://www.liveabout.com/top-best-party-songs-of-all-time-3248355)\n",288 "\"Macarena\" then spent 14 weeks at No. 1 on the U.S. pop singles chart. For more than a year this was one of the \n",289 "most popular special event songs in the United States. It still works well as a charming party song encouraging \n",290 "everyone to join in on the simple dance.\n",291 "\n",292 "[50+ Best Songs For Your Next Party in 2025 - Aleka's \n",293 "Get-Together](https://alekasgettogether.com/top-songs-for-any-party/)\n",294 "Whether you're planning a How To Host The Best Party At Home or just want to liven up your playlist, we've got you \n",295 "covered with 100 crowd-pleasing tunes. From timeless classics to modern hits, these songs are guaranteed to keep \n",296 "the energy high and the good times rolling all night long. 50 Popular Party Songs. Uptown Funk - Mark Ronson ft ...\n",297 "\n",298 "[The 101 Best Party Songs Of All Time - Music Grotto](https://www.musicgrotto.com/best-party-songs/)\n",299 "A pounding beat and dramatic vocals make this song one of the best party songs to come out of Europe, and the \n",300 "song's music video features a strange and compelling premise of a dead man being reanimated and falling in love \n",301 "with a woman. Tjis Verwest, (a.k.a. Tiësto) composed the song with help from James Bell, Julia Karlsson, and Anton \n",302 "Rundberg.\n",303 "\n",304 "[Top 200 Most Requested Songs - DJ Event Planner](https://djeventplanner.com/mostrequested.htm)\n",305 "Based on over 2 million requests using the DJ Event Planner song request system, this is a list of the most \n",306 "requested songs of the past year. Sign Up For A Free Trial Click To Hide Me Top 200 Decades Special Songs Print \n",307 "Download PDF UK Edition Last Year's List Sign Up For A Free Trial\n",308 "\n",309 "[20 Best Celebration Songs for Your Party Playlist - The Knot](https://www.theknot.com/content/celebration-songs)\n",310 "Celebrate good times with the best celebration songs, perfect for bringing everyone to the dance floor to \n",311 "scream-sing your favorite celebratory lyrics. Earn cash as you plan. Get a $20 gift card for every 200 points. ... \n",312 "Few celebration party songs hold a candle to this one by Rare Earth, which has been a must-have addition to any \n",313 "wedding song ...\n",314 "\n",315 "[100 Best Party Songs: The Ultimate Party Playlist](https://audiocaptain.com/best-party-songs/)\n",316 "Best 2000s Party Songs. Stylistically speaking, music that dominated the charts in the 2000s was nondescript.. \n",317 "There was not much new regarding musical directions. Club and hip hop dominated the charts while indie acts and \n",318 "some rock groups still had influence.\n",319 "\n",320 "Out: None\n"321 ]322 },323 "metadata": {},324 "output_type": "display_data"325 },326 {327 "data": {328 "text/html": [329 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 1: Duration 9.02 seconds| Input tokens: 2,249 | Output tokens: 82]</span>\n",330 "</pre>\n"331 ],332 "text/plain": [333 "\u001b[2m[Step 1: Duration 9.02 seconds| Input tokens: 2,249 | Output tokens: 82]\u001b[0m\n"334 ]335 },336 "metadata": {},337 "output_type": "display_data"338 },339 {340 "data": {341 "text/html": [342 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",343 "</pre>\n"344 ],345 "text/plain": [346 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m2\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"347 ]348 },349 "metadata": {},350 "output_type": "display_data"351 },352 {353 "data": {354 "text/html": [355 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",356 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">wayne_mansion_music </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> web_search(query</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"best music for a party Wayne's mansion\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",357 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(wayne_mansion_music)</span><span style=\"background-color: #272822\"> </span> \n",358 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",359 "</pre>\n"360 ],361 "text/plain": [362 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",363 " \u001b[38;2;248;248;242;48;2;39;40;34mwayne_mansion_music\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mweb_search\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mquery\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mbest music for a party Wayne\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m'\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34ms mansion\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",364 " \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mwayne_mansion_music\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",365 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"366 ]367 },368 "metadata": {},369 "output_type": "display_data"370 },371 {372 "data": {373 "text/html": [374 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",375 "## Search Results\n",376 "\n",377 "[The 75 Best Party Songs That Will Get Everyone Dancing - \n",378 "Gear4music](https://www.gear4music.com/blog/best-party-songs/)\n",379 "The best party songs 1. \"September\" - Earth, Wind & Fire (1978) Quite possibly the best party song. An infectious \n",380 "mix of funk and soul, \"September\" is celebrated for its upbeat melody and \"ba-dee-ya\" chorus, making it a timeless \n",381 "dance favorite.\n",382 "\n",383 "[45 Songs That Get Your Event Guests on the Dance Floor Every \n",384 "Time](https://hub.theeventplannerexpo.com/entertainment/35-songs-that-get-your-event-guests-on-the-dance-floor-ever\n",385 "y-time)\n",386 "You'll know your client's event best, including music genre preferences and styles. But these songs are wildly \n",387 "popular among many generations and are always great to have on standby should your dance guests need a boost. Party\n",388 "Songs \"Flowers\" by Miley Cyrus (2023) \"TQG\" by KAROL G & Shakira (2023) \"TRUSTFALL\" by P!nk (2023)\n",389 "\n",390 "[50 Songs on Every Event Planner's Playlist - \n",391 "Eventbrite](https://www.eventbrite.com/blog/event-planning-playlist-ds00/)\n",392 "Music sets the mood and provides the soundtrack (literally) for a memorable and exciting time. While the right \n",393 "songs can enhance the experience, the wrong event music can throw off the vibe. For example, fast-paced songs \n",394 "probably aren't the best fit for a formal gala. And smooth jazz is likely to lull your guests at a motivational \n",395 "conference.\n",396 "\n",397 "[Wedding Party Entrance Songs to Get the Party Started - The Mansion \n",398 "...](https://mansiononmainstreet.com/wedding-party-entrance-songs-to-get-the-party-started/)\n",399 "Best Wedding Party Entrance Songs. No matter what vibe you're going for, there are some wedding party entrance \n",400 "songs that are guaranteed to be a hit with people. ... \"Down,\" by Jay Sean ft. Lil Wayne ... The Mansion on Main \n",401 "Street is a picturesque events venue wrapped in elegance and modern beauty. Situated amidst exquisitely manicured \n",402 "...\n",403 "\n",404 "[27 Most Influential Songs About Parties & Celebrations (Must Hear)](https://www.pdmusic.org/songs-about-parties/)\n",405 "Contents. 1 27 Most Famous Songs About Parties, Partying & Drinking With Friend (Ultimate Playlist); 2 #1 \"Party in\n",406 "the U.S.A.\" by Miley Cyrus; 3 #2 \"I Gotta Feeling\" by The Black Eyed Peas; 4 #3 \"Party Rock Anthem\" by LMFAO; 5 #4 \n",407 "\"Last Friday Night (T.G.I.F.)\" by Katy Perry; 6 #5 \"Dancing Queen\" by ABBA; 7 #6 \"Turn Down for What\" by DJ Snake &\n",408 "Lil Jon\n",409 "\n",410 "[Old School R&B Mix 2024 | BEST 90s & 2000s R&B Party Songs](https://www.youtube.com/watch?v=1E2iltstrbU)\n",411 "Get ready to ignite the dance floor with the ultimate Music Mix ! We've curated the hottest tracks and hits to \n",412 "ensure your party is nothing short of epic. ...\n",413 "\n",414 "[Best Songs To Party: DJ's Ultimate Party Songs Playlist - \n",415 "Top40Weekly.com](https://top40weekly.com/best-songs-to-party/)\n",416 "If you're looking for the ultimate playlist to get your party started, look no further than this best party songs \n",417 "playlist. Whether you're hosting a birthday bash, a backyard barbecue, or just a night in with friends, the right \n",418 "music can make all the difference. From classic hits to modern bangers, we've compiled a list of the best songs ...\n",419 "\n",420 "[Party music mix ~ Songs to play in the party ~ Best songs that make you \n",421 "...](https://www.youtube.com/watch?v=d40kl-TvBj8)\n",422 "Party music mix ~ Songs to play in the party ~ Best songs that make you dance#ACmewsic #partymusic #dancesongs👍 \n",423 "Suggested Video:Songs to sing in the car: ht...\n",424 "\n",425 "[The 55+ Best Songs About Partying, For Your Next Party Anthem - \n",426 "Ranker](https://www.ranker.com/list/the-best-songs-about-parties/ranker-music)\n",427 "Unveiling the best songs about partying, this collection captures the quintessential beats and lyrics that have \n",428 "stood the test of time, leaving an indelible mark on the minds of music enthusiasts. Delving into the realm of top \n",429 "song party hits, every entry in the compilation boasts distinct elements that contribute to its popularity and \n",430 "charm.\n",431 "\n",432 "[111 Wedding Party Entrance Songs to Get the Party Started - The \n",433 "Knot](https://www.theknot.com/content/wedding-party-entrance-songs)\n",434 "Unique Wedding Party Entrance Songs . Don't be afraid to think outside of the box with these unique wedding party \n",435 "entrance songs. Here are a few of our favorite underrated picks. 72. \"We Are Family,\" by Sister Sledge. From the \n",436 "album: We are Family, 1979. Lyrics you'll love: \"We are family/I got all my sisters with me/We are family/Get up \n",437 "...\n",438 "\n",439 "Out: None\n",440 "</pre>\n"441 ],442 "text/plain": [443 "\u001b[1mExecution logs:\u001b[0m\n",444 "## Search Results\n",445 "\n",446 "[The 75 Best Party Songs That Will Get Everyone Dancing - \n",447 "Gear4music](https://www.gear4music.com/blog/best-party-songs/)\n",448 "The best party songs 1. \"September\" - Earth, Wind & Fire (1978) Quite possibly the best party song. An infectious \n",449 "mix of funk and soul, \"September\" is celebrated for its upbeat melody and \"ba-dee-ya\" chorus, making it a timeless \n",450 "dance favorite.\n",451 "\n",452 "[45 Songs That Get Your Event Guests on the Dance Floor Every \n",453 "Time](https://hub.theeventplannerexpo.com/entertainment/35-songs-that-get-your-event-guests-on-the-dance-floor-ever\n",454 "y-time)\n",455 "You'll know your client's event best, including music genre preferences and styles. But these songs are wildly \n",456 "popular among many generations and are always great to have on standby should your dance guests need a boost. Party\n",457 "Songs \"Flowers\" by Miley Cyrus (2023) \"TQG\" by KAROL G & Shakira (2023) \"TRUSTFALL\" by P!nk (2023)\n",458 "\n",459 "[50 Songs on Every Event Planner's Playlist - \n",460 "Eventbrite](https://www.eventbrite.com/blog/event-planning-playlist-ds00/)\n",461 "Music sets the mood and provides the soundtrack (literally) for a memorable and exciting time. While the right \n",462 "songs can enhance the experience, the wrong event music can throw off the vibe. For example, fast-paced songs \n",463 "probably aren't the best fit for a formal gala. And smooth jazz is likely to lull your guests at a motivational \n",464 "conference.\n",465 "\n",466 "[Wedding Party Entrance Songs to Get the Party Started - The Mansion \n",467 "...](https://mansiononmainstreet.com/wedding-party-entrance-songs-to-get-the-party-started/)\n",468 "Best Wedding Party Entrance Songs. No matter what vibe you're going for, there are some wedding party entrance \n",469 "songs that are guaranteed to be a hit with people. ... \"Down,\" by Jay Sean ft. Lil Wayne ... The Mansion on Main \n",470 "Street is a picturesque events venue wrapped in elegance and modern beauty. Situated amidst exquisitely manicured \n",471 "...\n",472 "\n",473 "[27 Most Influential Songs About Parties & Celebrations (Must Hear)](https://www.pdmusic.org/songs-about-parties/)\n",474 "Contents. 1 27 Most Famous Songs About Parties, Partying & Drinking With Friend (Ultimate Playlist); 2 #1 \"Party in\n",475 "the U.S.A.\" by Miley Cyrus; 3 #2 \"I Gotta Feeling\" by The Black Eyed Peas; 4 #3 \"Party Rock Anthem\" by LMFAO; 5 #4 \n",476 "\"Last Friday Night (T.G.I.F.)\" by Katy Perry; 6 #5 \"Dancing Queen\" by ABBA; 7 #6 \"Turn Down for What\" by DJ Snake &\n",477 "Lil Jon\n",478 "\n",479 "[Old School R&B Mix 2024 | BEST 90s & 2000s R&B Party Songs](https://www.youtube.com/watch?v=1E2iltstrbU)\n",480 "Get ready to ignite the dance floor with the ultimate Music Mix ! We've curated the hottest tracks and hits to \n",481 "ensure your party is nothing short of epic. ...\n",482 "\n",483 "[Best Songs To Party: DJ's Ultimate Party Songs Playlist - \n",484 "Top40Weekly.com](https://top40weekly.com/best-songs-to-party/)\n",485 "If you're looking for the ultimate playlist to get your party started, look no further than this best party songs \n",486 "playlist. Whether you're hosting a birthday bash, a backyard barbecue, or just a night in with friends, the right \n",487 "music can make all the difference. From classic hits to modern bangers, we've compiled a list of the best songs ...\n",488 "\n",489 "[Party music mix ~ Songs to play in the party ~ Best songs that make you \n",490 "...](https://www.youtube.com/watch?v=d40kl-TvBj8)\n",491 "Party music mix ~ Songs to play in the party ~ Best songs that make you dance#ACmewsic #partymusic #dancesongs👍 \n",492 "Suggested Video:Songs to sing in the car: ht...\n",493 "\n",494 "[The 55+ Best Songs About Partying, For Your Next Party Anthem - \n",495 "Ranker](https://www.ranker.com/list/the-best-songs-about-parties/ranker-music)\n",496 "Unveiling the best songs about partying, this collection captures the quintessential beats and lyrics that have \n",497 "stood the test of time, leaving an indelible mark on the minds of music enthusiasts. Delving into the realm of top \n",498 "song party hits, every entry in the compilation boasts distinct elements that contribute to its popularity and \n",499 "charm.\n",500 "\n",501 "[111 Wedding Party Entrance Songs to Get the Party Started - The \n",502 "Knot](https://www.theknot.com/content/wedding-party-entrance-songs)\n",503 "Unique Wedding Party Entrance Songs . Don't be afraid to think outside of the box with these unique wedding party \n",504 "entrance songs. Here are a few of our favorite underrated picks. 72. \"We Are Family,\" by Sister Sledge. From the \n",505 "album: We are Family, 1979. Lyrics you'll love: \"We are family/I got all my sisters with me/We are family/Get up \n",506 "...\n",507 "\n",508 "Out: None\n"509 ]510 },511 "metadata": {},512 "output_type": "display_data"513 },514 {515 "data": {516 "text/html": [517 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 2: Duration 14.49 seconds| Input tokens: 5,762 | Output tokens: 165]</span>\n",518 "</pre>\n"519 ],520 "text/plain": [521 "\u001b[2m[Step 2: Duration 14.49 seconds| Input tokens: 5,762 | Output tokens: 165]\u001b[0m\n"522 ]523 },524 "metadata": {},525 "output_type": "display_data"526 },527 {528 "data": {529 "text/html": [530 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",531 "</pre>\n"532 ],533 "text/plain": [534 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m3\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"535 ]536 },537 "metadata": {},538 "output_type": "display_data"539 },540 {541 "data": {542 "text/html": [543 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",544 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">playlist </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"\"\"</span><span style=\"background-color: #272822\"> </span> \n",545 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">1. \"September\" - Earth, Wind & Fire</span><span style=\"background-color: #272822\"> </span> \n",546 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">2. \"Uptown Funk\" - Mark Ronson ft. Bruno Mars</span><span style=\"background-color: #272822\"> </span> \n",547 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">3. \"Crazy in Love\" - Beyoncé ft. Jay-Z</span><span style=\"background-color: #272822\"> </span> \n",548 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">4. \"Good as Hell\" - Lizzo</span><span style=\"background-color: #272822\"> </span> \n",549 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">5. \"Treasure\" - Bruno Mars</span><span style=\"background-color: #272822\"> </span> \n",550 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">6. \"Get Lucky\" - Daft Punk ft. Pharrell Williams</span><span style=\"background-color: #272822\"> </span> \n",551 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">7. \"Signed, Sealed, Delivered (I'm Yours)\" - Stevie Wonder</span><span style=\"background-color: #272822\"> </span> \n",552 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">8. \"Dancing Queen\" - ABBA</span><span style=\"background-color: #272822\"> </span> \n",553 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">9. \"Happy\" - Pharrell Williams</span><span style=\"background-color: #272822\"> </span> \n",554 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">10. \"Can't Stop the Feeling!\" - Justin Timberlake</span><span style=\"background-color: #272822\"> </span> \n",555 " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"\"\"</span><span style=\"background-color: #272822\"> </span> \n",556 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">final_answer(playlist)</span><span style=\"background-color: #272822\"> </span> \n",557 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",558 "</pre>\n"559 ],560 "text/plain": [561 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",562 " \u001b[38;2;248;248;242;48;2;39;40;34mplaylist\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\"\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",563 " \u001b[38;2;230;219;116;48;2;39;40;34m1. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mSeptember\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Earth, Wind & Fire\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",564 " \u001b[38;2;230;219;116;48;2;39;40;34m2. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mUptown Funk\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Mark Ronson ft. Bruno Mars\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",565 " \u001b[38;2;230;219;116;48;2;39;40;34m3. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mCrazy in Love\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Beyoncé ft. Jay-Z\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",566 " \u001b[38;2;230;219;116;48;2;39;40;34m4. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mGood as Hell\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Lizzo\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",567 " \u001b[38;2;230;219;116;48;2;39;40;34m5. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mTreasure\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Bruno Mars\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",568 " \u001b[38;2;230;219;116;48;2;39;40;34m6. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mGet Lucky\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Daft Punk ft. Pharrell Williams\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",569 " \u001b[38;2;230;219;116;48;2;39;40;34m7. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mSigned, Sealed, Delivered (I\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m'\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mm Yours)\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Stevie Wonder\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",570 " \u001b[38;2;230;219;116;48;2;39;40;34m8. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mDancing Queen\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - ABBA\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",571 " \u001b[38;2;230;219;116;48;2;39;40;34m9. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mHappy\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Pharrell Williams\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",572 " \u001b[38;2;230;219;116;48;2;39;40;34m10. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mCan\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m'\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mt Stop the Feeling!\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m - Justin Timberlake\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",573 " \u001b[38;2;230;219;116;48;2;39;40;34m\"\"\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",574 " \u001b[38;2;248;248;242;48;2;39;40;34mfinal_answer\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mplaylist\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",575 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"576 ]577 },578 "metadata": {},579 "output_type": "display_data"580 },581 {582 "data": {583 "text/html": [584 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">Out - Final answer: </span>\n",585 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">1. \"September\" - Earth, Wind & Fire</span>\n",586 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">2. \"Uptown Funk\" - Mark Ronson ft. Bruno Mars</span>\n",587 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">3. \"Crazy in Love\" - Beyoncé ft. Jay-Z</span>\n",588 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">4. \"Good as Hell\" - Lizzo</span>\n",589 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">5. \"Treasure\" - Bruno Mars</span>\n",590 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">6. \"Get Lucky\" - Daft Punk ft. Pharrell Williams</span>\n",591 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">7. \"Signed, Sealed, Delivered (I'm Yours)\" - Stevie Wonder</span>\n",592 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">8. \"Dancing Queen\" - ABBA</span>\n",593 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">9. \"Happy\" - Pharrell Williams</span>\n",594 "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">10. \"Can't Stop the Feeling!\" - Justin Timberlake</span>\n",595 "\n",596 "</pre>\n"597 ],598 "text/plain": [599 "\u001b[1;38;2;212;183;2mOut - Final answer: \u001b[0m\n",600 "\u001b[1;38;2;212;183;2m1. \"September\" - Earth, Wind & Fire\u001b[0m\n",601 "\u001b[1;38;2;212;183;2m2. \"Uptown Funk\" - Mark Ronson ft. Bruno Mars\u001b[0m\n",602 "\u001b[1;38;2;212;183;2m3. \"Crazy in Love\" - Beyoncé ft. Jay-Z\u001b[0m\n",603 "\u001b[1;38;2;212;183;2m4. \"Good as Hell\" - Lizzo\u001b[0m\n",604 "\u001b[1;38;2;212;183;2m5. \"Treasure\" - Bruno Mars\u001b[0m\n",605 "\u001b[1;38;2;212;183;2m6. \"Get Lucky\" - Daft Punk ft. Pharrell Williams\u001b[0m\n",606 "\u001b[1;38;2;212;183;2m7. \"Signed, Sealed, Delivered (I'm Yours)\" - Stevie Wonder\u001b[0m\n",607 "\u001b[1;38;2;212;183;2m8. \"Dancing Queen\" - ABBA\u001b[0m\n",608 "\u001b[1;38;2;212;183;2m9. \"Happy\" - Pharrell Williams\u001b[0m\n",609 "\u001b[1;38;2;212;183;2m10. \"Can't Stop the Feeling!\" - Justin Timberlake\u001b[0m\n",610 "\n"611 ]612 },613 "metadata": {},614 "output_type": "display_data"615 },616 {617 "data": {618 "text/html": [619 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 3: Duration 3.61 seconds| Input tokens: 10,597 | Output tokens: 619]</span>\n",620 "</pre>\n"621 ],622 "text/plain": [623 "\u001b[2m[Step 3: Duration 3.61 seconds| Input tokens: 10,597 | Output tokens: 619]\u001b[0m\n"624 ]625 },626 "metadata": {},627 "output_type": "display_data"628 },629 {630 "data": {631 "text/plain": [632 "'\\n1. \"September\" - Earth, Wind & Fire\\n2. \"Uptown Funk\" - Mark Ronson ft. Bruno Mars\\n3. \"Crazy in Love\" - Beyoncé ft. Jay-Z\\n4. \"Good as Hell\" - Lizzo\\n5. \"Treasure\" - Bruno Mars\\n6. \"Get Lucky\" - Daft Punk ft. Pharrell Williams\\n7. \"Signed, Sealed, Delivered (I\\'m Yours)\" - Stevie Wonder\\n8. \"Dancing Queen\" - ABBA\\n9. \"Happy\" - Pharrell Williams\\n10. \"Can\\'t Stop the Feeling!\" - Justin Timberlake\\n'"633 ]634 },635 "execution_count": 13,636 "metadata": {},637 "output_type": "execute_result"638 }639 ],640 "source": [641 "from smolagents import CodeAgent, DuckDuckGoSearchTool, LiteLLMModel \n",642 "\n",643 "model = LiteLLMModel(\n",644 " model_id=\"gemini/gemini-2.0-flash-lite-001\",\n",645 " temperature=0.7,\n",646 " api_key=\"\")\n",647 "\n",648 "\n",649 "\n",650 "agent = CodeAgent(tools=[DuckDuckGoSearchTool()],\n",651 " model=model)\n",652 "\n",653 "agent.run(\"Search for the best music recommendations for a party at the Wayne's mansion.\")\n"654 ]655 },656 {657 "cell_type": "code",658 "execution_count": 14,659 "metadata": {},660 "outputs": [661 {662 "data": {663 "text/html": [664 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">╭──────────────────────────────────────────────────── </span><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">New run</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ────────────────────────────────────────────────────╮</span>\n",665 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",666 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">Prepare a formal menu for the party.</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",667 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",668 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ LiteLLMModel - gemini/gemini-2.0-flash-lite-001 ───────────────────────────────────────────────────────────────╯</span>\n",669 "</pre>\n"670 ],671 "text/plain": [672 "\u001b[38;2;212;183;2m╭─\u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[1;38;2;212;183;2mNew run\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╮\u001b[0m\n",673 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",674 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mPrepare a formal menu for the party.\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",675 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",676 "\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m LiteLLMModel - gemini/gemini-2.0-flash-lite-001 \u001b[0m\u001b[38;2;212;183;2m──────────────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"677 ]678 },679 "metadata": {},680 "output_type": "display_data"681 },682 {683 "data": {684 "text/html": [685 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",686 "</pre>\n"687 ],688 "text/plain": [689 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m1\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"690 ]691 },692 "metadata": {},693 "output_type": "display_data"694 },695 {696 "data": {697 "text/html": [698 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",699 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">menu </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> suggest_menu(occasion</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"party\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",700 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(menu)</span><span style=\"background-color: #272822\"> </span> \n",701 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",702 "</pre>\n"703 ],704 "text/plain": [705 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",706 " \u001b[38;2;248;248;242;48;2;39;40;34mmenu\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34msuggest_menu\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34moccasion\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mparty\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",707 " \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mmenu\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",708 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"709 ]710 },711 "metadata": {},712 "output_type": "display_data"713 },714 {715 "data": {716 "text/html": [717 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",718 "Custom menu for the butler.\n",719 "\n",720 "Out: None\n",721 "</pre>\n"722 ],723 "text/plain": [724 "\u001b[1mExecution logs:\u001b[0m\n",725 "Custom menu for the butler.\n",726 "\n",727 "Out: None\n"728 ]729 },730 "metadata": {},731 "output_type": "display_data"732 },733 {734 "data": {735 "text/html": [736 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 1: Duration 2.57 seconds| Input tokens: 2,228 | Output tokens: 74]</span>\n",737 "</pre>\n"738 ],739 "text/plain": [740 "\u001b[2m[Step 1: Duration 2.57 seconds| Input tokens: 2,228 | Output tokens: 74]\u001b[0m\n"741 ]742 },743 "metadata": {},744 "output_type": "display_data"745 },746 {747 "data": {748 "text/html": [749 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",750 "</pre>\n"751 ],752 "text/plain": [753 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m2\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"754 ]755 },756 "metadata": {},757 "output_type": "display_data"758 },759 {760 "data": {761 "text/html": [762 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",763 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">final_answer(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"Custom menu for the butler.\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",764 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",765 "</pre>\n"766 ],767 "text/plain": [768 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",769 " \u001b[38;2;248;248;242;48;2;39;40;34mfinal_answer\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mCustom menu for the butler.\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",770 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"771 ]772 },773 "metadata": {},774 "output_type": "display_data"775 },776 {777 "data": {778 "text/html": [779 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">Out - Final answer: Custom menu for the butler.</span>\n",780 "</pre>\n"781 ],782 "text/plain": [783 "\u001b[1;38;2;212;183;2mOut - Final answer: Custom menu for the butler.\u001b[0m\n"784 ]785 },786 "metadata": {},787 "output_type": "display_data"788 },789 {790 "data": {791 "text/html": [792 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 2: Duration 0.94 seconds| Input tokens: 4,611 | Output tokens: 134]</span>\n",793 "</pre>\n"794 ],795 "text/plain": [796 "\u001b[2m[Step 2: Duration 0.94 seconds| Input tokens: 4,611 | Output tokens: 134]\u001b[0m\n"797 ]798 },799 "metadata": {},800 "output_type": "display_data"801 },802 {803 "data": {804 "text/plain": [805 "'Custom menu for the butler.'"806 ]807 },808 "execution_count": 14,809 "metadata": {},810 "output_type": "execute_result"811 }812 ],813 "source": [814 "from smolagents import CodeAgent, tool\n",815 "\n",816 "@tool\n",817 "def suggest_menu(occasion: str) -> str:\n",818 " \"\"\"\n",819 " Suggests a menu based on the occasion.\n",820 " Args:\n",821 " occasion: The type of occasion for the party.\n",822 " \"\"\"\n",823 " if occasion == \"casual\":\n",824 " return \"Pizza, snacks, and drinks.\"\n",825 " elif occasion == \"formal\":\n",826 " return \"3-course dinner with wine and dessert.\"\n",827 " elif occasion == \"superhero\":\n",828 " return \"Buffet with high-energy and healthy food.\"\n",829 " else:\n",830 " return \"Custom menu for the butler.\"\n",831 "\n",832 "agent = CodeAgent(tools=[suggest_menu], model=model)\n",833 "\n",834 "agent.run(\"Prepare a formal menu for the party.\")"835 ]836 },837 {838 "cell_type": "code",839 "execution_count": 15,840 "metadata": {},841 "outputs": [842 {843 "data": {844 "text/html": [845 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">╭──────────────────────────────────────────────────── </span><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">New run</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ────────────────────────────────────────────────────╮</span>\n",846 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",847 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">Alfred needs to prepare for the party. Here are the tasks:</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",848 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\"> 1. Prepare the drinks - 30 minutes</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",849 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\"> 2. Decorate the mansion - 60 minutes</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",850 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\"> 3. Set up the menu - 45 minutes</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",851 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\"> 3. Prepare the music and playlist - 45 minutes</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",852 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",853 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\"> If we start right now, at what time will the party be ready?</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",854 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",855 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ LiteLLMModel - gemini/gemini-2.0-flash-lite-001 ───────────────────────────────────────────────────────────────╯</span>\n",856 "</pre>\n"857 ],858 "text/plain": [859 "\u001b[38;2;212;183;2m╭─\u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[1;38;2;212;183;2mNew run\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╮\u001b[0m\n",860 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",861 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mAlfred needs to prepare for the party. Here are the tasks:\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",862 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1m 1. Prepare the drinks - 30 minutes\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",863 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1m 2. Decorate the mansion - 60 minutes\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",864 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1m 3. Set up the menu - 45 minutes\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",865 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1m 3. Prepare the music and playlist - 45 minutes\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",866 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",867 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1m If we start right now, at what time will the party be ready?\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",868 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",869 "\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m LiteLLMModel - gemini/gemini-2.0-flash-lite-001 \u001b[0m\u001b[38;2;212;183;2m──────────────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"870 ]871 },872 "metadata": {},873 "output_type": "display_data"874 },875 {876 "data": {877 "text/html": [878 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",879 "</pre>\n"880 ],881 "text/plain": [882 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m1\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"883 ]884 },885 "metadata": {},886 "output_type": "display_data"887 },888 {889 "data": {890 "text/html": [891 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",892 " <span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">from</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> datetime </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">import</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> datetime, timedelta</span><span style=\"background-color: #272822\"> </span> \n",893 " <span style=\"background-color: #272822\"> </span> \n",894 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">drink_prep </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">30</span><span style=\"background-color: #272822\"> </span> \n",895 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">decorate </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">60</span><span style=\"background-color: #272822\"> </span> \n",896 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">menu_setup </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">45</span><span style=\"background-color: #272822\"> </span> \n",897 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">music_prep </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">45</span><span style=\"background-color: #272822\"> </span> \n",898 " <span style=\"background-color: #272822\"> </span> \n",899 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">total_minutes </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> drink_prep </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> decorate </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> menu_setup </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> music_prep</span><span style=\"background-color: #272822\"> </span> \n",900 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">f\"Total time in minutes: {</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">total_minutes</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">}\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",901 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",902 "</pre>\n"903 ],904 "text/plain": [905 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",906 " \u001b[38;2;255;70;137;48;2;39;40;34mfrom\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdatetime\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34mimport\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdatetime\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtimedelta\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",907 " \u001b[48;2;39;40;34m \u001b[0m \n",908 " \u001b[38;2;248;248;242;48;2;39;40;34mdrink_prep\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m30\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",909 " \u001b[38;2;248;248;242;48;2;39;40;34mdecorate\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m60\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",910 " \u001b[38;2;248;248;242;48;2;39;40;34mmenu_setup\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m45\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",911 " \u001b[38;2;248;248;242;48;2;39;40;34mmusic_prep\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m45\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",912 " \u001b[48;2;39;40;34m \u001b[0m \n",913 " \u001b[38;2;248;248;242;48;2;39;40;34mtotal_minutes\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdrink_prep\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdecorate\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mmenu_setup\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mmusic_prep\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",914 " \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mf\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mTotal time in minutes: \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m{\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtotal_minutes\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m}\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",915 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"916 ]917 },918 "metadata": {},919 "output_type": "display_data"920 },921 {922 "data": {923 "text/html": [924 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",925 "Total time in minutes: 180\n",926 "\n",927 "Out: None\n",928 "</pre>\n"929 ],930 "text/plain": [931 "\u001b[1mExecution logs:\u001b[0m\n",932 "Total time in minutes: 180\n",933 "\n",934 "Out: None\n"935 ]936 },937 "metadata": {},938 "output_type": "display_data"939 },940 {941 "data": {942 "text/html": [943 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 1: Duration 2.67 seconds| Input tokens: 2,253 | Output tokens: 154]</span>\n",944 "</pre>\n"945 ],946 "text/plain": [947 "\u001b[2m[Step 1: Duration 2.67 seconds| Input tokens: 2,253 | Output tokens: 154]\u001b[0m\n"948 ]949 },950 "metadata": {},951 "output_type": "display_data"952 },953 {954 "data": {955 "text/html": [956 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",957 "</pre>\n"958 ],959 "text/plain": [960 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m2\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"961 ]962 },963 "metadata": {},964 "output_type": "display_data"965 },966 {967 "data": {968 "text/html": [969 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",970 " <span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">from</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> datetime </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">import</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> datetime, timedelta</span><span style=\"background-color: #272822\"> </span> \n",971 " <span style=\"background-color: #272822\"> </span> \n",972 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">total_minutes </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">180</span><span style=\"background-color: #272822\"> </span> \n",973 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">hours </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> total_minutes </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">//</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">60</span><span style=\"background-color: #272822\"> </span> \n",974 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">minutes </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> total_minutes </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">%</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">60</span><span style=\"background-color: #272822\"> </span> \n",975 " <span style=\"background-color: #272822\"> </span> \n",976 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">current_time </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> datetime</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">now()</span><span style=\"background-color: #272822\"> </span> \n",977 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">duration </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> timedelta(hours</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">hours, minutes</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">minutes)</span><span style=\"background-color: #272822\"> </span> \n",978 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">party_ready_time </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> current_time </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> duration</span><span style=\"background-color: #272822\"> </span> \n",979 " <span style=\"background-color: #272822\"> </span> \n",980 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">f\"Party ready time: {</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">party_ready_time</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">}\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",981 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",982 "</pre>\n"983 ],984 "text/plain": [985 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",986 " \u001b[38;2;255;70;137;48;2;39;40;34mfrom\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdatetime\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34mimport\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdatetime\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtimedelta\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",987 " \u001b[48;2;39;40;34m \u001b[0m \n",988 " \u001b[38;2;248;248;242;48;2;39;40;34mtotal_minutes\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m180\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",989 " \u001b[38;2;248;248;242;48;2;39;40;34mhours\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtotal_minutes\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m/\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m/\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m60\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",990 " \u001b[38;2;248;248;242;48;2;39;40;34mminutes\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtotal_minutes\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m%\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m60\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",991 " \u001b[48;2;39;40;34m \u001b[0m \n",992 " \u001b[38;2;248;248;242;48;2;39;40;34mcurrent_time\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdatetime\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mnow\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",993 " \u001b[38;2;248;248;242;48;2;39;40;34mduration\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtimedelta\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mhours\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mhours\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mminutes\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mminutes\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",994 " \u001b[38;2;248;248;242;48;2;39;40;34mparty_ready_time\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mcurrent_time\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mduration\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",995 " \u001b[48;2;39;40;34m \u001b[0m \n",996 " \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mf\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mParty ready time: \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m{\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mparty_ready_time\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m}\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",997 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"998 ]999 },1000 "metadata": {},1001 "output_type": "display_data"1002 },1003 {1004 "data": {1005 "text/html": [1006 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",1007 "Party ready time: 2025-03-06 23:06:46.033418\n",1008 "\n",1009 "Out: None\n",1010 "</pre>\n"1011 ],1012 "text/plain": [1013 "\u001b[1mExecution logs:\u001b[0m\n",1014 "Party ready time: 2025-03-06 23:06:46.033418\n",1015 "\n",1016 "Out: None\n"1017 ]1018 },1019 "metadata": {},1020 "output_type": "display_data"1021 },1022 {1023 "data": {1024 "text/html": [1025 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 2: Duration 1.66 seconds| Input tokens: 4,808 | Output tokens: 287]</span>\n",1026 "</pre>\n"1027 ],1028 "text/plain": [1029 "\u001b[2m[Step 2: Duration 1.66 seconds| Input tokens: 4,808 | Output tokens: 287]\u001b[0m\n"1030 ]1031 },1032 "metadata": {},1033 "output_type": "display_data"1034 },1035 {1036 "data": {1037 "text/html": [1038 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",1039 "</pre>\n"1040 ],1041 "text/plain": [1042 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m3\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"1043 ]1044 },1045 "metadata": {},1046 "output_type": "display_data"1047 },1048 {1049 "data": {1050 "text/html": [1051 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",1052 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">party_ready_time </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> datetime</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">now() </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> timedelta(hours</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">3</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",1053 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">final_answer(party_ready_time)</span><span style=\"background-color: #272822\"> </span> \n",1054 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",1055 "</pre>\n"1056 ],1057 "text/plain": [1058 " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",1059 " \u001b[38;2;248;248;242;48;2;39;40;34mparty_ready_time\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mdatetime\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mnow\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mtimedelta\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mhours\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m3\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",1060 " \u001b[38;2;248;248;242;48;2;39;40;34mfinal_answer\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mparty_ready_time\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",1061 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"1062 ]1063 },1064 "metadata": {},1065 "output_type": "display_data"1066 },1067 {1068 "data": {1069 "text/html": [1070 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">Out - Final answer: 2025-03-06 23:06:47.144585</span>\n",1071 "</pre>\n"1072 ],1073 "text/plain": [1074 "\u001b[1;38;2;212;183;2mOut - Final answer: 2025-03-06 23:06:47.144585\u001b[0m\n"1075 ]1076 },1077 "metadata": {},1078 "output_type": "display_data"1079 },1080 {1081 "data": {1082 "text/html": [1083 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 3: Duration 1.11 seconds| Input tokens: 7,682 | Output tokens: 337]</span>\n",1084 "</pre>\n"1085 ],1086 "text/plain": [1087 "\u001b[2m[Step 3: Duration 1.11 seconds| Input tokens: 7,682 | Output tokens: 337]\u001b[0m\n"1088 ]1089 },1090 "metadata": {},1091 "output_type": "display_data"1092 },1093 {1094 "data": {1095 "text/plain": [1096 "datetime.datetime(2025, 3, 6, 23, 6, 47, 144585)"1097 ]1098 },1099 "execution_count": 15,1100 "metadata": {},1101 "output_type": "execute_result"1102 }1103 ],1104 "source": [1105 "\n",1106 "import numpy as np\n",1107 "import time\n",1108 "import datetime\n",1109 "\n",1110 "agent = CodeAgent(tools=[], model=model, additional_authorized_imports=['datetime'])\n",1111 "\n",1112 "agent.run(\n",1113 " \"\"\"\n",1114 " Alfred needs to prepare for the party. Here are the tasks:\n",1115 " 1. Prepare the drinks - 30 minutes\n",1116 " 2. Decorate the mansion - 60 minutes\n",1117 " 3. Set up the menu - 45 minutes\n",1118 " 3. Prepare the music and playlist - 45 minutes\n",1119 "\n",1120 " If we start right now, at what time will the party be ready?\n",1121 " \"\"\"\n",1122 ")"1123 ]1124 },1125 {1126 "cell_type": "code",1127 "execution_count": 16,1128 "metadata": {},1129 "outputs": [1130 {1131 "data": {1132 "text/html": [1133 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">╭──────────────────────────────────────────────────── </span><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">New run</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ────────────────────────────────────────────────────╮</span>\n",1134 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",1135 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">Give me best playlist for a party at the Wayne's mansion. The party idea is a 'villain masquerade' theme</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",1136 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",1137 "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ LiteLLMModel - gemini/gemini-2.0-flash-lite-001 ───────────────────────────────────────────────────────────────╯</span>\n",1138 "</pre>\n"1139 ],1140 "text/plain": [1141 "\u001b[38;2;212;183;2m╭─\u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[1;38;2;212;183;2mNew run\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╮\u001b[0m\n",1142 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",1143 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mGive me best playlist for a party at the Wayne's mansion. The party idea is a 'villain masquerade' theme\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",1144 "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",1145 "\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m LiteLLMModel - gemini/gemini-2.0-flash-lite-001 \u001b[0m\u001b[38;2;212;183;2m──────────────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"1146 ]1147 },1148 "metadata": {},1149 "output_type": "display_data"1150 },1151 {1152 "data": {1153 "text/html": [1154 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",1155 "</pre>\n"1156 ],1157 "text/plain": [1158 "\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m1\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"1159 ]1160 },1161 "metadata": {},1162 "output_type": "display_data"1163 },1164 {1165 "data": {1166 "text/html": [1167 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold; font-style: italic\">Output message of the LLM:</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">────────────────────────────────────────────────────────────────────────────────────────</span>\n",1168 "<span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\">Thought: I need to create a playlist for a villain masquerade party at Wayne's mansion. I will use the </span><span style=\"background-color: #0d1117\"> </span>\n",1169 "<span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">`suggest_menu`</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> tool to get some general party ideas, then </span><span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">`web_search`</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> to search for relevant songs.</span><span style=\"background-color: #0d1117\"> </span>\n",1170 "<span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\">Code:</span><span style=\"background-color: #0d1117\"> </span>\n",1171 "<span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">```py</span><span style=\"background-color: #0d1117\"> </span>\n",1172 "<span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\">party_theme </span><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117; font-weight: bold\">=</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> superhero_party_theme_generator(category</span><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117; font-weight: bold\">=</span><span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">\"villain masquerade\"</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\">)</span><span style=\"background-color: #0d1117\"> </span>\n",1173 "<span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\">print(party_theme)</span><span style=\"background-color: #0d1117\"> </span>\n",1174 "<span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">```</span><span style=\"background-color: #0d1117\"> </span>\n",1175 "</pre>\n"1176 ],1177 "text/plain": [1178 "\u001b[1;3mOutput message of the LLM:\u001b[0m \u001b[38;2;212;183;2m────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n",1179 "\u001b[38;2;230;237;243;48;2;13;17;23mThought:\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mI\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mneed\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mto\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mcreate\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23ma\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mplaylist\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mfor\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23ma\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mvillain\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mmasquerade\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mparty\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mat\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mWayne's\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mmansion.\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mI\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mwill\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23muse\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mthe\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n",1180 "\u001b[38;2;165;214;255;48;2;13;17;23m`suggest_menu`\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mtool\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mto\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mget\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23msome\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mgeneral\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mparty\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mideas,\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mthen\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23m`web_search`\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mto\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23msearch\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mfor\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mrelevant\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23msongs.\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n",1181 "\u001b[38;2;230;237;243;48;2;13;17;23mCode:\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n",1182 "\u001b[38;2;165;214;255;48;2;13;17;23m```\u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23mpy\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n",1183 "\u001b[38;2;230;237;243;48;2;13;17;23mparty_theme\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[1;38;2;255;123;114;48;2;13;17;23m=\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23msuperhero_party_theme_generator\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m(\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mcategory\u001b[0m\u001b[1;38;2;255;123;114;48;2;13;17;23m=\u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23m\"\u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23mvillain masquerade\u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23m\"\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m)\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n",1184 "\u001b[38;2;230;237;243;48;2;13;17;23mprint\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m(\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mparty_theme\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m)\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n",1185 "\u001b[38;2;165;214;255;48;2;13;17;23m```\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n"1186 ]1187 },1188 "metadata": {},1189 "output_type": "display_data"1190 },1191 {1192 "data": {1193 "text/html": [1194 "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> ─ <span style=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",1195 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">party_theme </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> superhero_party_theme_generator(category</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"villain masquerade\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",1196 " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(party_theme)</span><span style=\"background-color: #272822\"> </span> \n",1197 " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",1198 "</pre>\n"1199 ],1200 "text/plain": [