775 lines
75 KiB
Plaintext
775 lines
75 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"Import the modules of smolagent"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"c:\\Users\\RNT\\.conda\\envs\\smolagent\\Lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
|
" from .autonotebook import tqdm as notebook_tqdm\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"from typing import Optional\n",
|
|
"\n",
|
|
"from smolagents import HfApiModel, LiteLLMModel, TransformersModel, tool\n",
|
|
"from smolagents.agents import CodeAgent, ToolCallingAgent\n",
|
|
"from smolagents import DuckDuckGoSearchTool"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"Get the LLM model from ollama"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"model = LiteLLMModel(\n",
|
|
" model_id=\"ollama_chat/llama3.2\",\n",
|
|
" api_base=\"http://localhost:11434\", # replace with remote open-ai compatible server if necessary\n",
|
|
" #api_key=\"your-api-key\", # replace with API key if necessary\n",
|
|
" #num_ctx=8192, # ollama default is 2048 which will often fail horribly. 8192 works for easy tasks, more is better. Check https://huggingface.co/spaces/NyxKrage/LLM-Model-VRAM-Calculator to calculate how much VRAM this will need for the selected model.\n",
|
|
" )"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"Assign the tools and model to agent"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=model)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"Create task for agent (prompt)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"prompt = \"What is the capital of France?\""
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"Run Agent"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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",
|
|
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
|
|
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">What is the capital of France?</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
|
|
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
|
|
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ LiteLLMModel - ollama_chat/llama3.2 ───────────────────────────────────────────────────────────────────────────╯</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\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",
|
|
"\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
|
|
"\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mWhat is the capital of France?\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
|
|
"\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
|
|
"\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m LiteLLMModel - ollama_chat/llama3.2 \u001b[0m\u001b[38;2;212;183;2m──────────────────────────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\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"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
|
|
"│ Calling tool: 'web_search' with arguments: {'query': 'capital of France'} │\n",
|
|
"╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
|
|
"│ Calling tool: 'web_search' with arguments: {'query': 'capital of France'} │\n",
|
|
"╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Observations: ## Search Results\n",
|
|
"\n",
|
|
"|Paris - Wikipedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.org/wiki/Paris)</span>\n",
|
|
"Paris <span style=\"font-weight: bold\">(</span>French pronunciation: ⓘ<span style=\"font-weight: bold\">)</span> is the capital and largest city of France.With an estimated population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">048</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">472</span>\n",
|
|
"residents in January <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2025</span> |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"font-weight: bold\">]</span> in an area of more than <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">105</span> km <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span> <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">41</span> sq mi<span style=\"font-weight: bold\">)</span>, |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">4</span><span style=\"font-weight: bold\">]</span> Paris is the fourth-most populous \n",
|
|
"city in the European Union, the ninth-most populous city in Europe and the 30th most densely populated city in the \n",
|
|
"world in <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2022</span>. |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">5</span><span style=\"font-weight: bold\">]</span>\n",
|
|
"\n",
|
|
"|Paris | Definition, Map, Population, Facts, & History | Britannica<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.britannica.com/place/Paris)</span>\n",
|
|
"Paris, city and capital of France, located along the Seine River, in the north-central part of the country. Paris \n",
|
|
"is one of the world's most important and attractive cities, famed for its gastronomy, haute couture, painting, \n",
|
|
"literature, and intellectual community. Learn more about Paris in this article.\n",
|
|
"\n",
|
|
"|France | History, Maps, Flag, Population, Cities, Capital, & Facts <span style=\"color: #808000; text-decoration-color: #808000\">...</span><span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.britannica.com/place/France)</span>\n",
|
|
"France, a country of northwestern Europe, is historically and culturally among the most important countries in the \n",
|
|
"Western world. It has also played a highly significant role in international affairs for centuries. Its capital is \n",
|
|
"Paris, one of the most important cultural and commercial centers in the world.\n",
|
|
"\n",
|
|
"|Paris - Simple English Wikipedia, the free encyclopedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://simple.wikipedia.org/wiki/Paris)</span>\n",
|
|
"Paris is the capital city and the largest city of France, with a population of about <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2.15</span> million. It has a rich \n",
|
|
"history, many art museums, historical buildings, and a famous landmark, the Eiffel Tower.\n",
|
|
"\n",
|
|
"|List of capitals of France - Wikipedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.org/wiki/List_of_capitals_of_France)</span>\n",
|
|
"Learn about the historical and current capitals of France, from Tournai to Paris. See the chronology of changes, \n",
|
|
"the reasons for relocations, and the provisional seats of the government.\n",
|
|
"\n",
|
|
"|What is the Capital of France? - \n",
|
|
"WorldAtlas<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.worldatlas.com/articles/what-is-the-capital-of-france.html)</span>\n",
|
|
"Learn about the history, geography, economy, tourism, and administration of Paris, the capital city of France and \n",
|
|
"the country's largest city. Find out why Paris is called the City of Light and the City of Love.\n",
|
|
"\n",
|
|
"|Paris: Facts & Related Content - Encyclopedia Britannica<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.britannica.com/facts/Paris)</span>\n",
|
|
"Learn about Paris, the capital of France, and its history, culture, landmarks, and people. Find out why Paris is \n",
|
|
"called <span style=\"color: #008000; text-decoration-color: #008000\">\"the City of Light\"</span> and when it was founded, liberated, and attacked.\n",
|
|
"\n",
|
|
"|Paris - Wikiwand<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.wikiwand.com/en/articles/Paris)</span>\n",
|
|
"Paris is the capital and largest city of France. With an estimated population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">048</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">472</span> residents in January \n",
|
|
"<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2025</span> in an area of more than <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">105</span> km2 <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">41</span> sq mi<span style=\"font-weight: bold\">)</span>,<span style=\"color: #808000; text-decoration-color: #808000\">...</span>\n",
|
|
"\n",
|
|
"|Paris, France - New World Encyclopedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.newworldencyclopedia.org/entry/Paris,_France)</span>\n",
|
|
"Learn about the history, geography, culture, and administration of Paris, the capital city of France and one of the\n",
|
|
"world's leading global cities. Find out how Paris got its name, what landmarks and monuments it has, and how it \n",
|
|
"became a center of education and ideas.\n",
|
|
"\n",
|
|
"|Paris - Wikipedia, the free encyclopedia - Wikinews<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.beta.wmflabs.org/wiki/Paris)</span>\n",
|
|
"Paris <span style=\"font-weight: bold\">(</span>French pronunciation: . REDIRECCIÓN Plantill<span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">a:AF</span>I ⓘ<span style=\"font-weight: bold\">)</span> is the capital and most populous city of France, with \n",
|
|
"an estimated population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">165</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">423</span> residents in <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2019</span> in an area of more than <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">105</span> square kilometres <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">41</span> square \n",
|
|
"miles<span style=\"font-weight: bold\">)</span>, |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"font-weight: bold\">]</span> making it the 34th most densely populated city in the world in <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2020</span>. |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">4</span><span style=\"font-weight: bold\">]</span> Since the 17th century, Paris \n",
|
|
"has been one of the world's major centres of finance <span style=\"color: #808000; text-decoration-color: #808000\">...</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"Observations: ## Search Results\n",
|
|
"\n",
|
|
"|Paris - Wikipedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.org/wiki/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris \u001b[1m(\u001b[0mFrench pronunciation: ⓘ\u001b[1m)\u001b[0m is the capital and largest city of France.With an estimated population of \u001b[1;36m2\u001b[0m,\u001b[1;36m048\u001b[0m,\u001b[1;36m472\u001b[0m\n",
|
|
"residents in January \u001b[1;36m2025\u001b[0m |\u001b[1;36m3\u001b[0m\u001b[1m]\u001b[0m in an area of more than \u001b[1;36m105\u001b[0m km \u001b[1;36m2\u001b[0m \u001b[1m(\u001b[0m\u001b[1;36m41\u001b[0m sq mi\u001b[1m)\u001b[0m, |\u001b[1;36m4\u001b[0m\u001b[1m]\u001b[0m Paris is the fourth-most populous \n",
|
|
"city in the European Union, the ninth-most populous city in Europe and the 30th most densely populated city in the \n",
|
|
"world in \u001b[1;36m2022\u001b[0m. |\u001b[1;36m5\u001b[0m\u001b[1m]\u001b[0m\n",
|
|
"\n",
|
|
"|Paris | Definition, Map, Population, Facts, & History | Britannica\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.britannica.com/place/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris, city and capital of France, located along the Seine River, in the north-central part of the country. Paris \n",
|
|
"is one of the world's most important and attractive cities, famed for its gastronomy, haute couture, painting, \n",
|
|
"literature, and intellectual community. Learn more about Paris in this article.\n",
|
|
"\n",
|
|
"|France | History, Maps, Flag, Population, Cities, Capital, & Facts \u001b[33m...\u001b[0m\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.britannica.com/place/France\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"France, a country of northwestern Europe, is historically and culturally among the most important countries in the \n",
|
|
"Western world. It has also played a highly significant role in international affairs for centuries. Its capital is \n",
|
|
"Paris, one of the most important cultural and commercial centers in the world.\n",
|
|
"\n",
|
|
"|Paris - Simple English Wikipedia, the free encyclopedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://simple.wikipedia.org/wiki/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris is the capital city and the largest city of France, with a population of about \u001b[1;36m2.15\u001b[0m million. It has a rich \n",
|
|
"history, many art museums, historical buildings, and a famous landmark, the Eiffel Tower.\n",
|
|
"\n",
|
|
"|List of capitals of France - Wikipedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.org/wiki/List_of_capitals_of_France\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about the historical and current capitals of France, from Tournai to Paris. See the chronology of changes, \n",
|
|
"the reasons for relocations, and the provisional seats of the government.\n",
|
|
"\n",
|
|
"|What is the Capital of France? - \n",
|
|
"WorldAtlas\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.worldatlas.com/articles/what-is-the-capital-of-france.html\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about the history, geography, economy, tourism, and administration of Paris, the capital city of France and \n",
|
|
"the country's largest city. Find out why Paris is called the City of Light and the City of Love.\n",
|
|
"\n",
|
|
"|Paris: Facts & Related Content - Encyclopedia Britannica\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.britannica.com/facts/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about Paris, the capital of France, and its history, culture, landmarks, and people. Find out why Paris is \n",
|
|
"called \u001b[32m\"the City of Light\"\u001b[0m and when it was founded, liberated, and attacked.\n",
|
|
"\n",
|
|
"|Paris - Wikiwand\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.wikiwand.com/en/articles/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris is the capital and largest city of France. With an estimated population of \u001b[1;36m2\u001b[0m,\u001b[1;36m048\u001b[0m,\u001b[1;36m472\u001b[0m residents in January \n",
|
|
"\u001b[1;36m2025\u001b[0m in an area of more than \u001b[1;36m105\u001b[0m km2 \u001b[1m(\u001b[0m\u001b[1;36m41\u001b[0m sq mi\u001b[1m)\u001b[0m,\u001b[33m...\u001b[0m\n",
|
|
"\n",
|
|
"|Paris, France - New World Encyclopedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.newworldencyclopedia.org/entry/Paris,_France\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about the history, geography, culture, and administration of Paris, the capital city of France and one of the\n",
|
|
"world's leading global cities. Find out how Paris got its name, what landmarks and monuments it has, and how it \n",
|
|
"became a center of education and ideas.\n",
|
|
"\n",
|
|
"|Paris - Wikipedia, the free encyclopedia - Wikinews\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.beta.wmflabs.org/wiki/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris \u001b[1m(\u001b[0mFrench pronunciation: . REDIRECCIÓN Plantill\u001b[1;92ma:AF\u001b[0mI ⓘ\u001b[1m)\u001b[0m is the capital and most populous city of France, with \n",
|
|
"an estimated population of \u001b[1;36m2\u001b[0m,\u001b[1;36m165\u001b[0m,\u001b[1;36m423\u001b[0m residents in \u001b[1;36m2019\u001b[0m in an area of more than \u001b[1;36m105\u001b[0m square kilometres \u001b[1m(\u001b[0m\u001b[1;36m41\u001b[0m square \n",
|
|
"miles\u001b[1m)\u001b[0m, |\u001b[1;36m3\u001b[0m\u001b[1m]\u001b[0m making it the 34th most densely populated city in the world in \u001b[1;36m2020\u001b[0m. |\u001b[1;36m4\u001b[0m\u001b[1m]\u001b[0m Since the 17th century, Paris \n",
|
|
"has been one of the world's major centres of finance \u001b[33m...\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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 0: Duration 6.42 seconds| Input tokens: 1,107 | Output tokens: 19]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 0: Duration 6.42 seconds| Input tokens: 1,107 | Output tokens: 19]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\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"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
|
|
"│ Calling tool: 'web_search' with arguments: {'query': 'capital of France'} │\n",
|
|
"╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
|
|
"│ Calling tool: 'web_search' with arguments: {'query': 'capital of France'} │\n",
|
|
"╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Observations: ## Search Results\n",
|
|
"\n",
|
|
"|Paris - Wikipedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.org/wiki/Paris)</span>\n",
|
|
"Paris <span style=\"font-weight: bold\">(</span>French pronunciation: ⓘ<span style=\"font-weight: bold\">)</span> is the capital and largest city of France.With an estimated population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">048</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">472</span>\n",
|
|
"residents in January <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2025</span> |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"font-weight: bold\">]</span> in an area of more than <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">105</span> km <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span> <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">41</span> sq mi<span style=\"font-weight: bold\">)</span>, |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">4</span><span style=\"font-weight: bold\">]</span> Paris is the fourth-most populous \n",
|
|
"city in the European Union, the ninth-most populous city in Europe and the 30th most densely populated city in the \n",
|
|
"world in <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2022</span>. |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">5</span><span style=\"font-weight: bold\">]</span>\n",
|
|
"\n",
|
|
"|Paris | Definition, Map, Population, Facts, & History | Britannica<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.britannica.com/place/Paris)</span>\n",
|
|
"Paris, city and capital of France, located along the Seine River, in the north-central part of the country. Paris \n",
|
|
"is one of the world's most important and attractive cities, famed for its gastronomy, haute couture, painting, \n",
|
|
"literature, and intellectual community. Learn more about Paris in this article.\n",
|
|
"\n",
|
|
"|France | History, Maps, Flag, Population, Cities, Capital, & Facts <span style=\"color: #808000; text-decoration-color: #808000\">...</span><span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.britannica.com/place/France)</span>\n",
|
|
"France, a country of northwestern Europe, is historically and culturally among the most important countries in the \n",
|
|
"Western world. It has also played a highly significant role in international affairs for centuries. Its capital is \n",
|
|
"Paris, one of the most important cultural and commercial centers in the world.\n",
|
|
"\n",
|
|
"|Paris - Simple English Wikipedia, the free encyclopedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://simple.wikipedia.org/wiki/Paris)</span>\n",
|
|
"Paris is the capital city and the largest city of France, with a population of about <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2.15</span> million. It has a rich \n",
|
|
"history, many art museums, historical buildings, and a famous landmark, the Eiffel Tower.\n",
|
|
"\n",
|
|
"|What is the Capital of France? - \n",
|
|
"WorldAtlas<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.worldatlas.com/articles/what-is-the-capital-of-france.html)</span>\n",
|
|
"Learn about the history, geography, economy, tourism, and administration of Paris, the capital city of France and \n",
|
|
"the country's largest city. Find out why Paris is called the City of Light and the City of Love.\n",
|
|
"\n",
|
|
"|List of capitals of France - Wikipedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.org/wiki/List_of_capitals_of_France)</span>\n",
|
|
"Learn about the historical and current capitals of France, from Tournai to Paris. See the chronology of changes, \n",
|
|
"the reasons for relocations, and the provisional seats of the government.\n",
|
|
"\n",
|
|
"|Paris: Facts & Related Content - Encyclopedia Britannica<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.britannica.com/facts/Paris)</span>\n",
|
|
"Learn about Paris, the capital of France, and its history, culture, landmarks, and people. Find out why Paris is \n",
|
|
"called <span style=\"color: #008000; text-decoration-color: #008000\">\"the City of Light\"</span> and when it was founded, liberated, and attacked.\n",
|
|
"\n",
|
|
"|Capital of France - Simple English Wikipedia, the free \n",
|
|
"encyclopedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://simple.wikipedia.org/wiki/Capital_of_France)</span>\n",
|
|
"Learn about the history and current status of the capital of France, which is Paris. Find out which other cities \n",
|
|
"have been the national capital in different periods of time, from ancient to modern.\n",
|
|
"\n",
|
|
"|Paris - Kids | Britannica Kids | Homework Help<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://kids.britannica.com/kids/article/Paris/345991)</span>\n",
|
|
"Learn about Paris, the capital of France and one of western Europe's major centers of culture and business. \n",
|
|
"Discover its famous landmarks, history, economy, and population.\n",
|
|
"\n",
|
|
"|What is the Capital of France? - Mappr<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://www.mappr.co/capital-cities/france/)</span>\n",
|
|
"Learn about Paris, the capital of France, and its rich history, culture, and geography. Discover its landmarks, \n",
|
|
"climate, population, and role as a global city.\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"Observations: ## Search Results\n",
|
|
"\n",
|
|
"|Paris - Wikipedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.org/wiki/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris \u001b[1m(\u001b[0mFrench pronunciation: ⓘ\u001b[1m)\u001b[0m is the capital and largest city of France.With an estimated population of \u001b[1;36m2\u001b[0m,\u001b[1;36m048\u001b[0m,\u001b[1;36m472\u001b[0m\n",
|
|
"residents in January \u001b[1;36m2025\u001b[0m |\u001b[1;36m3\u001b[0m\u001b[1m]\u001b[0m in an area of more than \u001b[1;36m105\u001b[0m km \u001b[1;36m2\u001b[0m \u001b[1m(\u001b[0m\u001b[1;36m41\u001b[0m sq mi\u001b[1m)\u001b[0m, |\u001b[1;36m4\u001b[0m\u001b[1m]\u001b[0m Paris is the fourth-most populous \n",
|
|
"city in the European Union, the ninth-most populous city in Europe and the 30th most densely populated city in the \n",
|
|
"world in \u001b[1;36m2022\u001b[0m. |\u001b[1;36m5\u001b[0m\u001b[1m]\u001b[0m\n",
|
|
"\n",
|
|
"|Paris | Definition, Map, Population, Facts, & History | Britannica\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.britannica.com/place/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris, city and capital of France, located along the Seine River, in the north-central part of the country. Paris \n",
|
|
"is one of the world's most important and attractive cities, famed for its gastronomy, haute couture, painting, \n",
|
|
"literature, and intellectual community. Learn more about Paris in this article.\n",
|
|
"\n",
|
|
"|France | History, Maps, Flag, Population, Cities, Capital, & Facts \u001b[33m...\u001b[0m\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.britannica.com/place/France\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"France, a country of northwestern Europe, is historically and culturally among the most important countries in the \n",
|
|
"Western world. It has also played a highly significant role in international affairs for centuries. Its capital is \n",
|
|
"Paris, one of the most important cultural and commercial centers in the world.\n",
|
|
"\n",
|
|
"|Paris - Simple English Wikipedia, the free encyclopedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://simple.wikipedia.org/wiki/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris is the capital city and the largest city of France, with a population of about \u001b[1;36m2.15\u001b[0m million. It has a rich \n",
|
|
"history, many art museums, historical buildings, and a famous landmark, the Eiffel Tower.\n",
|
|
"\n",
|
|
"|What is the Capital of France? - \n",
|
|
"WorldAtlas\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.worldatlas.com/articles/what-is-the-capital-of-france.html\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about the history, geography, economy, tourism, and administration of Paris, the capital city of France and \n",
|
|
"the country's largest city. Find out why Paris is called the City of Light and the City of Love.\n",
|
|
"\n",
|
|
"|List of capitals of France - Wikipedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.org/wiki/List_of_capitals_of_France\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about the historical and current capitals of France, from Tournai to Paris. See the chronology of changes, \n",
|
|
"the reasons for relocations, and the provisional seats of the government.\n",
|
|
"\n",
|
|
"|Paris: Facts & Related Content - Encyclopedia Britannica\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.britannica.com/facts/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about Paris, the capital of France, and its history, culture, landmarks, and people. Find out why Paris is \n",
|
|
"called \u001b[32m\"the City of Light\"\u001b[0m and when it was founded, liberated, and attacked.\n",
|
|
"\n",
|
|
"|Capital of France - Simple English Wikipedia, the free \n",
|
|
"encyclopedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://simple.wikipedia.org/wiki/Capital_of_France\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about the history and current status of the capital of France, which is Paris. Find out which other cities \n",
|
|
"have been the national capital in different periods of time, from ancient to modern.\n",
|
|
"\n",
|
|
"|Paris - Kids | Britannica Kids | Homework Help\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://kids.britannica.com/kids/article/Paris/345991\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about Paris, the capital of France and one of western Europe's major centers of culture and business. \n",
|
|
"Discover its famous landmarks, history, economy, and population.\n",
|
|
"\n",
|
|
"|What is the Capital of France? - Mappr\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://www.mappr.co/capital-cities/france/\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Learn about Paris, the capital of France, and its rich history, culture, and geography. Discover its landmarks, \n",
|
|
"climate, population, and role as a global city.\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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 3.40 seconds| Input tokens: 3,139 | Output tokens: 38]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 1: Duration 3.40 seconds| Input tokens: 3,139 | Output tokens: 38]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\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"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
|
|
"│ Calling tool: 'web_search' with arguments: {'query': 'Which city has the highest population in France?'} │\n",
|
|
"╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
|
|
"│ Calling tool: 'web_search' with arguments: {'query': 'Which city has the highest population in France?'} │\n",
|
|
"╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Observations: ## Search Results\n",
|
|
"\n",
|
|
"|France Cities by Population <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2024</span> - World Population Review<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://worldpopulationreview.com/cities/france)</span>\n",
|
|
"France has <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span> cities with more than a million people, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">38</span> cities with between <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">100</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span> and <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span> million people, and <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">915</span> \n",
|
|
"cities with between <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">10</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span> and <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">100</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span> people. The largest city in France is Paris, with a population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">138</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">551</span> \n",
|
|
"people.\n",
|
|
"\n",
|
|
"|Top <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">10</span> largest cities of France by population - French \n",
|
|
"Moments<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://frenchmoments.eu/top-10-largest-cities-of-france-by-population/)</span>\n",
|
|
"The population of France. Did you know France has a population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">67</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">795</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span> <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2018</span><span style=\"font-weight: bold\">)</span>? This includes <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">65</span> million in \n",
|
|
"metropolitan France <span style=\"font-weight: bold\">(</span>that is mainland France located in Europe<span style=\"font-weight: bold\">)</span>. The country is the 20th most populous in the \n",
|
|
"world, representing <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.87</span>% of the total world population. The top <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">10</span> largest cities in France\n",
|
|
"\n",
|
|
"|<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">10</span> Largest Cities In France By Population<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://largest.org/geography/cities-in-france-by-population/)</span>\n",
|
|
"Montpellier has firmly established itself as one of the best places to reside in all of Europe because of its \n",
|
|
"robust economy, vibrant cultural and social scene, and one of the most appealing real estate markets in France. The\n",
|
|
"city has achieved a balance between modernity and livability, which has allowed it to become the metropolitan \n",
|
|
"region in <span style=\"color: #808000; text-decoration-color: #808000\">...</span>\n",
|
|
"\n",
|
|
"|<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">15</span> Largest Cities in France, Ranked by Population<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://people.howstuffworks.com/largest-cities-in-france.htm)</span>\n",
|
|
"Renowned for its rich history, art and cuisine, this iconic country is home to some of the most beautiful and \n",
|
|
"culturally significant cities and towns in the world. Each of the largest cities in France showcases a unique blend\n",
|
|
"of heritage, modernity and vibrant local traditions. From bustling metropolises to charming coastal hubs, these \n",
|
|
"communities reflect the diverse character of the nation.\n",
|
|
"\n",
|
|
"|List of communes in France with over <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">20</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span> \n",
|
|
"inhabitants<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.org/wiki/List_of_communes_in_France_with_over_20,000_inhabitants)</span>\n",
|
|
"Map of metropolitan France. As of January <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2019</span>, there were <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">473</span> communes in France <span style=\"font-weight: bold\">(</span>metropolitan territory and \n",
|
|
"overseas departments and regions<span style=\"font-weight: bold\">)</span> with population over <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">20</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">280</span> communes with population over <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">30</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span>, <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">129</span> \n",
|
|
"communes with population over <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">50</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span> and <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">42</span> communes with population over <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">100</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">000</span>. |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"font-weight: bold\">]</span> All figures reflect the \n",
|
|
"municipal population <span style=\"font-weight: bold\">(</span>French: population municipale<span style=\"font-weight: bold\">)</span>, meaning <span style=\"color: #808000; text-decoration-color: #808000\">...</span>\n",
|
|
"\n",
|
|
"|The biggest cities in France by population - Learn French With \n",
|
|
"Alexa<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://learnfrenchwithalexa.com/blog/the-biggest-cities-in-france-by-population)</span>\n",
|
|
"Read on to discover France's ten largest cities. Paris <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2.2</span> million people<span style=\"font-weight: bold\">)</span> It won't surprise you to learn that \n",
|
|
"Paris leads the list, with a population of over <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span> million. That said, it's only the 10th largest city in Europe. \n",
|
|
"Istanbul, the largest, has nearly <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">16</span> million inhabitants! <span style=\"color: #808000; text-decoration-color: #808000\">...</span>\n",
|
|
"\n",
|
|
"|Population of cities in France <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2024</span> - \n",
|
|
"StatisticsTimes.com<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://statisticstimes.com/demographics/country/france-cities-population.php)</span>\n",
|
|
"List of population cities in France based on the estimates and projections by United Nations. yearwise change in \n",
|
|
"population and population growth rate. <span style=\"color: #808000; text-decoration-color: #808000\">...</span> Top <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">10</span> largest economies by GDP. See Also: <span style=\"color: #808000; text-decoration-color: #808000\">...</span> » Countries by area; View\n",
|
|
"More Demographics Statistics; France cities population; City Population Share <span style=\"font-weight: bold\">(</span>%<span style=\"font-weight: bold\">)</span> Rank Change; <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2023</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2024</span> France <span style=\"color: #808000; text-decoration-color: #808000\">...</span>\n",
|
|
"\n",
|
|
"|List of cities in France by \n",
|
|
"population<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://population-hub.com/en/fr/list-of-cities-in-france-by-population.html)</span>\n",
|
|
"In total, there are <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">288</span> cities in France. The largest city is Paris with a population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">240</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">621</span> . The total \n",
|
|
"population of France is <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">68859599</span> people - <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.89</span>% of the total population of the Earth.\n",
|
|
"\n",
|
|
"|The <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">20</span> largest cities in France - wanderlix.com<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://wanderlix.com/post/the-largest-cities-in-france/)</span>\n",
|
|
"The 41st largest country in the world, France has <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">64.5</span> million inhabitants in <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">36</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">681</span> municipalities. What are the \n",
|
|
"<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">20</span> largest cities in france? Press ESC to close\n",
|
|
"\n",
|
|
"|Paris - Wikipedia<span style=\"font-weight: bold\">](</span><span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://en.wikipedia.org/wiki/Paris)</span>\n",
|
|
"Paris <span style=\"font-weight: bold\">(</span>French pronunciation: ⓘ<span style=\"font-weight: bold\">)</span> is the capital and largest city of France.With an estimated population of <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">048</span>,<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">472</span>\n",
|
|
"residents in January <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2025</span> |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"font-weight: bold\">]</span> in an area of more than <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">105</span> km <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span> <span style=\"font-weight: bold\">(</span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">41</span> sq mi<span style=\"font-weight: bold\">)</span>, |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">4</span><span style=\"font-weight: bold\">]</span> Paris is the fourth-most populous \n",
|
|
"city in the European Union, the ninth-most populous city in Europe and the 30th most densely populated city in the \n",
|
|
"world in <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2022</span>. |<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">5</span><span style=\"font-weight: bold\">]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"Observations: ## Search Results\n",
|
|
"\n",
|
|
"|France Cities by Population \u001b[1;36m2024\u001b[0m - World Population Review\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://worldpopulationreview.com/cities/france\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"France has \u001b[1;36m1\u001b[0m cities with more than a million people, \u001b[1;36m38\u001b[0m cities with between \u001b[1;36m100\u001b[0m,\u001b[1;36m000\u001b[0m and \u001b[1;36m1\u001b[0m million people, and \u001b[1;36m915\u001b[0m \n",
|
|
"cities with between \u001b[1;36m10\u001b[0m,\u001b[1;36m000\u001b[0m and \u001b[1;36m100\u001b[0m,\u001b[1;36m000\u001b[0m people. The largest city in France is Paris, with a population of \u001b[1;36m2\u001b[0m,\u001b[1;36m138\u001b[0m,\u001b[1;36m551\u001b[0m \n",
|
|
"people.\n",
|
|
"\n",
|
|
"|Top \u001b[1;36m10\u001b[0m largest cities of France by population - French \n",
|
|
"Moments\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://frenchmoments.eu/top-10-largest-cities-of-france-by-population/\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"The population of France. Did you know France has a population of \u001b[1;36m67\u001b[0m,\u001b[1;36m795\u001b[0m,\u001b[1;36m000\u001b[0m \u001b[1m(\u001b[0m\u001b[1;36m2018\u001b[0m\u001b[1m)\u001b[0m? This includes \u001b[1;36m65\u001b[0m million in \n",
|
|
"metropolitan France \u001b[1m(\u001b[0mthat is mainland France located in Europe\u001b[1m)\u001b[0m. The country is the 20th most populous in the \n",
|
|
"world, representing \u001b[1;36m0.87\u001b[0m% of the total world population. The top \u001b[1;36m10\u001b[0m largest cities in France\n",
|
|
"\n",
|
|
"|\u001b[1;36m10\u001b[0m Largest Cities In France By Population\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://largest.org/geography/cities-in-france-by-population/\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Montpellier has firmly established itself as one of the best places to reside in all of Europe because of its \n",
|
|
"robust economy, vibrant cultural and social scene, and one of the most appealing real estate markets in France. The\n",
|
|
"city has achieved a balance between modernity and livability, which has allowed it to become the metropolitan \n",
|
|
"region in \u001b[33m...\u001b[0m\n",
|
|
"\n",
|
|
"|\u001b[1;36m15\u001b[0m Largest Cities in France, Ranked by Population\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://people.howstuffworks.com/largest-cities-in-france.htm\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Renowned for its rich history, art and cuisine, this iconic country is home to some of the most beautiful and \n",
|
|
"culturally significant cities and towns in the world. Each of the largest cities in France showcases a unique blend\n",
|
|
"of heritage, modernity and vibrant local traditions. From bustling metropolises to charming coastal hubs, these \n",
|
|
"communities reflect the diverse character of the nation.\n",
|
|
"\n",
|
|
"|List of communes in France with over \u001b[1;36m20\u001b[0m,\u001b[1;36m000\u001b[0m \n",
|
|
"inhabitants\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.org/wiki/List_of_communes_in_France_with_over_20,000_inhabitants\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Map of metropolitan France. As of January \u001b[1;36m2019\u001b[0m, there were \u001b[1;36m473\u001b[0m communes in France \u001b[1m(\u001b[0mmetropolitan territory and \n",
|
|
"overseas departments and regions\u001b[1m)\u001b[0m with population over \u001b[1;36m20\u001b[0m,\u001b[1;36m000\u001b[0m, \u001b[1;36m280\u001b[0m communes with population over \u001b[1;36m30\u001b[0m,\u001b[1;36m000\u001b[0m, \u001b[1;36m129\u001b[0m \n",
|
|
"communes with population over \u001b[1;36m50\u001b[0m,\u001b[1;36m000\u001b[0m and \u001b[1;36m42\u001b[0m communes with population over \u001b[1;36m100\u001b[0m,\u001b[1;36m000\u001b[0m. |\u001b[1;36m1\u001b[0m\u001b[1m]\u001b[0m All figures reflect the \n",
|
|
"municipal population \u001b[1m(\u001b[0mFrench: population municipale\u001b[1m)\u001b[0m, meaning \u001b[33m...\u001b[0m\n",
|
|
"\n",
|
|
"|The biggest cities in France by population - Learn French With \n",
|
|
"Alexa\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://learnfrenchwithalexa.com/blog/the-biggest-cities-in-france-by-population\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Read on to discover France's ten largest cities. Paris \u001b[1m(\u001b[0m\u001b[1;36m2.2\u001b[0m million people\u001b[1m)\u001b[0m It won't surprise you to learn that \n",
|
|
"Paris leads the list, with a population of over \u001b[1;36m2\u001b[0m million. That said, it's only the 10th largest city in Europe. \n",
|
|
"Istanbul, the largest, has nearly \u001b[1;36m16\u001b[0m million inhabitants! \u001b[33m...\u001b[0m\n",
|
|
"\n",
|
|
"|Population of cities in France \u001b[1;36m2024\u001b[0m - \n",
|
|
"StatisticsTimes.com\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://statisticstimes.com/demographics/country/france-cities-population.php\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"List of population cities in France based on the estimates and projections by United Nations. yearwise change in \n",
|
|
"population and population growth rate. \u001b[33m...\u001b[0m Top \u001b[1;36m10\u001b[0m largest economies by GDP. See Also: \u001b[33m...\u001b[0m » Countries by area; View\n",
|
|
"More Demographics Statistics; France cities population; City Population Share \u001b[1m(\u001b[0m%\u001b[1m)\u001b[0m Rank Change; \u001b[1;36m2023\u001b[0m \u001b[1;36m2024\u001b[0m France \u001b[33m...\u001b[0m\n",
|
|
"\n",
|
|
"|List of cities in France by \n",
|
|
"population\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://population-hub.com/en/fr/list-of-cities-in-france-by-population.html\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"In total, there are \u001b[1;36m288\u001b[0m cities in France. The largest city is Paris with a population of \u001b[1;36m2\u001b[0m \u001b[1;36m240\u001b[0m \u001b[1;36m621\u001b[0m . The total \n",
|
|
"population of France is \u001b[1;36m68859599\u001b[0m people - \u001b[1;36m0.89\u001b[0m% of the total population of the Earth.\n",
|
|
"\n",
|
|
"|The \u001b[1;36m20\u001b[0m largest cities in France - wanderlix.com\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://wanderlix.com/post/the-largest-cities-in-france/\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"The 41st largest country in the world, France has \u001b[1;36m64.5\u001b[0m million inhabitants in \u001b[1;36m36\u001b[0m,\u001b[1;36m681\u001b[0m municipalities. What are the \n",
|
|
"\u001b[1;36m20\u001b[0m largest cities in france? Press ESC to close\n",
|
|
"\n",
|
|
"|Paris - Wikipedia\u001b[1m]\u001b[0m\u001b[1m(\u001b[0m\u001b[4;94mhttps://en.wikipedia.org/wiki/Paris\u001b[0m\u001b[4;94m)\u001b[0m\n",
|
|
"Paris \u001b[1m(\u001b[0mFrench pronunciation: ⓘ\u001b[1m)\u001b[0m is the capital and largest city of France.With an estimated population of \u001b[1;36m2\u001b[0m,\u001b[1;36m048\u001b[0m,\u001b[1;36m472\u001b[0m\n",
|
|
"residents in January \u001b[1;36m2025\u001b[0m |\u001b[1;36m3\u001b[0m\u001b[1m]\u001b[0m in an area of more than \u001b[1;36m105\u001b[0m km \u001b[1;36m2\u001b[0m \u001b[1m(\u001b[0m\u001b[1;36m41\u001b[0m sq mi\u001b[1m)\u001b[0m, |\u001b[1;36m4\u001b[0m\u001b[1m]\u001b[0m Paris is the fourth-most populous \n",
|
|
"city in the European Union, the ninth-most populous city in Europe and the 30th most densely populated city in the \n",
|
|
"world in \u001b[1;36m2022\u001b[0m. |\u001b[1;36m5\u001b[0m\u001b[1m]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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 3.77 seconds| Input tokens: 5,076 | Output tokens: 63]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 2: Duration 3.77 seconds| Input tokens: 5,076 | Output tokens: 63]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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\">4</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m4\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">Error in generating tool call with model:</span>\n",
|
|
"<span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">'NoneType'</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\"> object is not iterable</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[1;31mError in generating tool call with model:\u001b[0m\n",
|
|
"\u001b[1;31m'NoneType'\u001b[0m\u001b[1;31m object is not iterable\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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.63 seconds| Input tokens: 7,124 | Output tokens: 70]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 3: Duration 1.63 seconds| Input tokens: 7,124 | Output tokens: 70]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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\">5</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m5\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">Error in generating tool call with model:</span>\n",
|
|
"<span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">'NoneType'</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\"> object is not iterable</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[1;31mError in generating tool call with model:\u001b[0m\n",
|
|
"\u001b[1;31m'NoneType'\u001b[0m\u001b[1;31m object is not iterable\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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 4: Duration 2.45 seconds| Input tokens: 9,172 | Output tokens: 129]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 4: Duration 2.45 seconds| Input tokens: 9,172 | Output tokens: 129]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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\">6</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[38;2;212;183;2m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m6\u001b[0m\u001b[38;2;212;183;2m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">Error in generating tool call with model:</span>\n",
|
|
"<span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">'NoneType'</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\"> object is not iterable</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[1;31mError in generating tool call with model:\u001b[0m\n",
|
|
"\u001b[1;31m'NoneType'\u001b[0m\u001b[1;31m object is not iterable\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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 5: Duration 1.93 seconds| Input tokens: 11,220 | Output tokens: 161]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 5: Duration 1.93 seconds| Input tokens: 11,220 | Output tokens: 161]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">Reached max steps.</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[1;31mReached max steps.\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<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 6: Duration 1.93 seconds| Input tokens: 12,524 | Output tokens: 169]</span>\n",
|
|
"</pre>\n"
|
|
],
|
|
"text/plain": [
|
|
"\u001b[2m[Step 6: Duration 1.93 seconds| Input tokens: 12,524 | Output tokens: 169]\u001b[0m\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"'The capital of France is Paris.'"
|
|
]
|
|
},
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"agent.run(prompt)"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "smolagent",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.12.9"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|