raphaelamonteiro commited on
Commit
0b5a701
·
verified ·
1 Parent(s): aa132d1

feat: add from google colab

Browse files
Files changed (1) hide show
  1. SmartAgent_WebSearch.ipynb +850 -0
SmartAgent_WebSearch.ipynb ADDED
@@ -0,0 +1,850 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 0,
4
+ "metadata": {
5
+ "colab": {
6
+ "provenance": []
7
+ },
8
+ "kernelspec": {
9
+ "name": "python3",
10
+ "display_name": "Python 3"
11
+ },
12
+ "language_info": {
13
+ "name": "python"
14
+ }
15
+ },
16
+ "cells": [
17
+ {
18
+ "cell_type": "code",
19
+ "execution_count": 25,
20
+ "metadata": {
21
+ "id": "LYLftQMbY-LW",
22
+ "colab": {
23
+ "base_uri": "https://localhost:8080/"
24
+ },
25
+ "outputId": "4cff713f-8711-40e7-9c94-49aa3cc02bcb"
26
+ },
27
+ "outputs": [
28
+ {
29
+ "output_type": "stream",
30
+ "name": "stdout",
31
+ "text": [
32
+ "Requirement already satisfied: smolagents[toolkit] in /usr/local/lib/python3.11/dist-packages (1.14.0)\n",
33
+ "\u001b[33mWARNING: smolagents 1.14.0 does not provide the extra 'toolkit'\u001b[0m\u001b[33m\n",
34
+ "\u001b[0mRequirement already satisfied: huggingface-hub>=0.28.0 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (0.30.2)\n",
35
+ "Requirement already satisfied: requests>=2.32.3 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (2.32.3)\n",
36
+ "Requirement already satisfied: rich>=13.9.4 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (13.9.4)\n",
37
+ "Requirement already satisfied: jinja2>=3.1.4 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (3.1.6)\n",
38
+ "Requirement already satisfied: pillow>=11.0.0 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (11.2.1)\n",
39
+ "Requirement already satisfied: markdownify>=0.14.1 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (1.1.0)\n",
40
+ "Requirement already satisfied: duckduckgo-search>=6.3.7 in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (8.0.1)\n",
41
+ "Requirement already satisfied: python-dotenv in /usr/local/lib/python3.11/dist-packages (from smolagents[toolkit]) (1.1.0)\n",
42
+ "Requirement already satisfied: click>=8.1.8 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents[toolkit]) (8.1.8)\n",
43
+ "Requirement already satisfied: primp>=0.15.0 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents[toolkit]) (0.15.0)\n",
44
+ "Requirement already satisfied: lxml>=5.3.0 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents[toolkit]) (5.4.0)\n",
45
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents[toolkit]) (3.18.0)\n",
46
+ "Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents[toolkit]) (2025.3.2)\n",
47
+ "Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents[toolkit]) (24.2)\n",
48
+ "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents[toolkit]) (6.0.2)\n",
49
+ "Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents[toolkit]) (4.67.1)\n",
50
+ "Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents[toolkit]) (4.13.2)\n",
51
+ "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/dist-packages (from jinja2>=3.1.4->smolagents[toolkit]) (3.0.2)\n",
52
+ "Requirement already satisfied: beautifulsoup4<5,>=4.9 in /usr/local/lib/python3.11/dist-packages (from markdownify>=0.14.1->smolagents[toolkit]) (4.13.4)\n",
53
+ "Requirement already satisfied: six<2,>=1.15 in /usr/local/lib/python3.11/dist-packages (from markdownify>=0.14.1->smolagents[toolkit]) (1.17.0)\n",
54
+ "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents[toolkit]) (3.4.1)\n",
55
+ "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents[toolkit]) (3.10)\n",
56
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents[toolkit]) (2.4.0)\n",
57
+ "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents[toolkit]) (2025.4.26)\n",
58
+ "Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.11/dist-packages (from rich>=13.9.4->smolagents[toolkit]) (3.0.0)\n",
59
+ "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.11/dist-packages (from rich>=13.9.4->smolagents[toolkit]) (2.19.1)\n",
60
+ "Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.11/dist-packages (from beautifulsoup4<5,>=4.9->markdownify>=0.14.1->smolagents[toolkit]) (2.7)\n",
61
+ "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.11/dist-packages (from markdown-it-py>=2.2.0->rich>=13.9.4->smolagents[toolkit]) (0.1.2)\n"
62
+ ]
63
+ }
64
+ ],
65
+ "source": [
66
+ "!pip install -U smolagents[toolkit]\n"
67
+ ]
68
+ },
69
+ {
70
+ "cell_type": "code",
71
+ "source": [
72
+ "!pip install smolagents # Install smolagents"
73
+ ],
74
+ "metadata": {
75
+ "colab": {
76
+ "base_uri": "https://localhost:8080/"
77
+ },
78
+ "id": "GQxYhy7ludJB",
79
+ "outputId": "4e1dd9ea-603a-4154-d51e-4cf630d99c9b"
80
+ },
81
+ "execution_count": 15,
82
+ "outputs": [
83
+ {
84
+ "output_type": "stream",
85
+ "name": "stdout",
86
+ "text": [
87
+ "Requirement already satisfied: smolagents in /usr/local/lib/python3.11/dist-packages (1.14.0)\n",
88
+ "Requirement already satisfied: huggingface-hub>=0.28.0 in /usr/local/lib/python3.11/dist-packages (from smolagents) (0.30.2)\n",
89
+ "Requirement already satisfied: requests>=2.32.3 in /usr/local/lib/python3.11/dist-packages (from smolagents) (2.32.3)\n",
90
+ "Requirement already satisfied: rich>=13.9.4 in /usr/local/lib/python3.11/dist-packages (from smolagents) (13.9.4)\n",
91
+ "Requirement already satisfied: jinja2>=3.1.4 in /usr/local/lib/python3.11/dist-packages (from smolagents) (3.1.6)\n",
92
+ "Requirement already satisfied: pillow>=11.0.0 in /usr/local/lib/python3.11/dist-packages (from smolagents) (11.2.1)\n",
93
+ "Requirement already satisfied: markdownify>=0.14.1 in /usr/local/lib/python3.11/dist-packages (from smolagents) (1.1.0)\n",
94
+ "Requirement already satisfied: duckduckgo-search>=6.3.7 in /usr/local/lib/python3.11/dist-packages (from smolagents) (8.0.1)\n",
95
+ "Requirement already satisfied: python-dotenv in /usr/local/lib/python3.11/dist-packages (from smolagents) (1.1.0)\n",
96
+ "Requirement already satisfied: click>=8.1.8 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents) (8.1.8)\n",
97
+ "Requirement already satisfied: primp>=0.15.0 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents) (0.15.0)\n",
98
+ "Requirement already satisfied: lxml>=5.3.0 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents) (5.4.0)\n",
99
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (3.18.0)\n",
100
+ "Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (2025.3.2)\n",
101
+ "Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (24.2)\n",
102
+ "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (6.0.2)\n",
103
+ "Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (4.67.1)\n",
104
+ "Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (4.13.2)\n",
105
+ "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/dist-packages (from jinja2>=3.1.4->smolagents) (3.0.2)\n",
106
+ "Requirement already satisfied: beautifulsoup4<5,>=4.9 in /usr/local/lib/python3.11/dist-packages (from markdownify>=0.14.1->smolagents) (4.13.4)\n",
107
+ "Requirement already satisfied: six<2,>=1.15 in /usr/local/lib/python3.11/dist-packages (from markdownify>=0.14.1->smolagents) (1.17.0)\n",
108
+ "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (3.4.1)\n",
109
+ "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (3.10)\n",
110
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (2.4.0)\n",
111
+ "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (2025.4.26)\n",
112
+ "Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.11/dist-packages (from rich>=13.9.4->smolagents) (3.0.0)\n",
113
+ "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.11/dist-packages (from rich>=13.9.4->smolagents) (2.19.1)\n",
114
+ "Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.11/dist-packages (from beautifulsoup4<5,>=4.9->markdownify>=0.14.1->smolagents) (2.7)\n",
115
+ "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.11/dist-packages (from markdown-it-py>=2.2.0->rich>=13.9.4->smolagents) (0.1.2)\n"
116
+ ]
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "cell_type": "code",
122
+ "source": [
123
+ "!pip install --upgrade smolagents # Update smolagents to the latest version"
124
+ ],
125
+ "metadata": {
126
+ "colab": {
127
+ "base_uri": "https://localhost:8080/"
128
+ },
129
+ "id": "6BTZt6Gquy_k",
130
+ "outputId": "81a90b9c-f85a-4569-9a69-33d1226353dc"
131
+ },
132
+ "execution_count": 20,
133
+ "outputs": [
134
+ {
135
+ "output_type": "stream",
136
+ "name": "stdout",
137
+ "text": [
138
+ "Requirement already satisfied: smolagents in /usr/local/lib/python3.11/dist-packages (1.14.0)\n",
139
+ "Requirement already satisfied: huggingface-hub>=0.28.0 in /usr/local/lib/python3.11/dist-packages (from smolagents) (0.30.2)\n",
140
+ "Requirement already satisfied: requests>=2.32.3 in /usr/local/lib/python3.11/dist-packages (from smolagents) (2.32.3)\n",
141
+ "Requirement already satisfied: rich>=13.9.4 in /usr/local/lib/python3.11/dist-packages (from smolagents) (13.9.4)\n",
142
+ "Requirement already satisfied: jinja2>=3.1.4 in /usr/local/lib/python3.11/dist-packages (from smolagents) (3.1.6)\n",
143
+ "Requirement already satisfied: pillow>=11.0.0 in /usr/local/lib/python3.11/dist-packages (from smolagents) (11.2.1)\n",
144
+ "Requirement already satisfied: markdownify>=0.14.1 in /usr/local/lib/python3.11/dist-packages (from smolagents) (1.1.0)\n",
145
+ "Requirement already satisfied: duckduckgo-search>=6.3.7 in /usr/local/lib/python3.11/dist-packages (from smolagents) (8.0.1)\n",
146
+ "Requirement already satisfied: python-dotenv in /usr/local/lib/python3.11/dist-packages (from smolagents) (1.1.0)\n",
147
+ "Requirement already satisfied: click>=8.1.8 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents) (8.1.8)\n",
148
+ "Requirement already satisfied: primp>=0.15.0 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents) (0.15.0)\n",
149
+ "Requirement already satisfied: lxml>=5.3.0 in /usr/local/lib/python3.11/dist-packages (from duckduckgo-search>=6.3.7->smolagents) (5.4.0)\n",
150
+ "Requirement already satisfied: filelock in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (3.18.0)\n",
151
+ "Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (2025.3.2)\n",
152
+ "Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (24.2)\n",
153
+ "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (6.0.2)\n",
154
+ "Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (4.67.1)\n",
155
+ "Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.11/dist-packages (from huggingface-hub>=0.28.0->smolagents) (4.13.2)\n",
156
+ "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/dist-packages (from jinja2>=3.1.4->smolagents) (3.0.2)\n",
157
+ "Requirement already satisfied: beautifulsoup4<5,>=4.9 in /usr/local/lib/python3.11/dist-packages (from markdownify>=0.14.1->smolagents) (4.13.4)\n",
158
+ "Requirement already satisfied: six<2,>=1.15 in /usr/local/lib/python3.11/dist-packages (from markdownify>=0.14.1->smolagents) (1.17.0)\n",
159
+ "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (3.4.1)\n",
160
+ "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (3.10)\n",
161
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (2.4.0)\n",
162
+ "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests>=2.32.3->smolagents) (2025.4.26)\n",
163
+ "Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.11/dist-packages (from rich>=13.9.4->smolagents) (3.0.0)\n",
164
+ "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.11/dist-packages (from rich>=13.9.4->smolagents) (2.19.1)\n",
165
+ "Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.11/dist-packages (from beautifulsoup4<5,>=4.9->markdownify>=0.14.1->smolagents) (2.7)\n",
166
+ "Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.11/dist-packages (from markdown-it-py>=2.2.0->rich>=13.9.4->smolagents) (0.1.2)\n"
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "cell_type": "code",
173
+ "source": [
174
+ "from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel\n",
175
+ "\n",
176
+ "# Inicialize o modelo\n",
177
+ "model = InferenceClientModel()\n",
178
+ "\n",
179
+ "# Inicialize a ferramenta de busca\n",
180
+ "search_tool = DuckDuckGoSearchTool()\n",
181
+ "\n",
182
+ "# Crie o agente com a ferramenta de busca\n",
183
+ "agent = CodeAgent(tools=[search_tool], model=model)\n",
184
+ "\n",
185
+ "# Execute uma consulta\n",
186
+ "response = agent.run(\"Qual a altura do Cristo Redentor?\")\n",
187
+ "print(response)\n"
188
+ ],
189
+ "metadata": {
190
+ "colab": {
191
+ "base_uri": "https://localhost:8080/",
192
+ "height": 1000
193
+ },
194
+ "id": "u92U9-FwtYGy",
195
+ "outputId": "83e41566-a5e7-44cd-8bb5-8ab8e4bb3204"
196
+ },
197
+ "execution_count": 27,
198
+ "outputs": [
199
+ {
200
+ "output_type": "display_data",
201
+ "data": {
202
+ "text/plain": [
203
+ "\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",
204
+ "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
205
+ "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mQual a altura do Cristo Redentor?\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
206
+ "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
207
+ "\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m InferenceClientModel - Qwen/Qwen2.5-Coder-32B-Instruct \u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"
208
+ ],
209
+ "text/html": [
210
+ "<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",
211
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
212
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">Qual a altura do Cristo Redentor?</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
213
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
214
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ InferenceClientModel - Qwen/Qwen2.5-Coder-32B-Instruct ────────────────────────────────────────────────────────╯</span>\n",
215
+ "</pre>\n"
216
+ ]
217
+ },
218
+ "metadata": {}
219
+ },
220
+ {
221
+ "output_type": "display_data",
222
+ "data": {
223
+ "text/plain": [
224
+ "\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"
225
+ ],
226
+ "text/html": [
227
+ "<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",
228
+ "</pre>\n"
229
+ ]
230
+ },
231
+ "metadata": {}
232
+ },
233
+ {
234
+ "output_type": "display_data",
235
+ "data": {
236
+ "text/plain": [
237
+ " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",
238
+ " \u001b[38;2;248;248;242;48;2;39;40;34mtranslated_question\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;34msearch\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;34mQual a altura do Cristo Redentor?\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",
239
+ " \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;34mThe translated question is \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;34mtranslated_question\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;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",
240
+ " \u001b[38;2;248;248;242;48;2;39;40;34mheight_info\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;34mheight of Christ the Redeemer\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",
241
+ " \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;34mheight_info\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
242
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"
243
+ ],
244
+ "text/html": [
245
+ "<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",
246
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">translated_question </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> 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\">\"Qual a altura do Cristo Redentor?\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
247
+ " <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\"The translated question is {</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">translated_question</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",
248
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">height_info </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\">\"height of Christ the Redeemer\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
249
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(height_info)</span><span style=\"background-color: #272822\"> </span> \n",
250
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
251
+ "</pre>\n"
252
+ ]
253
+ },
254
+ "metadata": {}
255
+ },
256
+ {
257
+ "output_type": "display_data",
258
+ "data": {
259
+ "text/plain": [
260
+ "\u001b[1;31mCode execution failed at line \u001b[0m\u001b[32m'translated_question = search\u001b[0m\u001b[32m(\u001b[0m\u001b[32mquery\u001b[0m\u001b[32m=\u001b[0m\u001b[32m\"Qual\u001b[0m\u001b[32m a altura do Cristo Redentor?\"\u001b[0m\u001b[32m)\u001b[0m\u001b[32m'\u001b[0m\u001b[1;31m due to: \u001b[0m\n",
261
+ "\u001b[1;31mInterpreterError: Forbidden function evaluation: \u001b[0m\u001b[32m'search'\u001b[0m\u001b[1;31m is not among the explicitly allowed tools or \u001b[0m\n",
262
+ "\u001b[1;31mdefined/imported in the preceding code\u001b[0m\n"
263
+ ],
264
+ "text/html": [
265
+ "<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\">Code execution failed at line </span><span style=\"color: #008000; text-decoration-color: #008000\">'translated_question = search(query=\"Qual a altura do Cristo Redentor?\")'</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\"> due to: </span>\n",
266
+ "<span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">InterpreterError: Forbidden function evaluation: </span><span style=\"color: #008000; text-decoration-color: #008000\">'search'</span><span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\"> is not among the explicitly allowed tools or </span>\n",
267
+ "<span style=\"color: #800000; text-decoration-color: #800000; font-weight: bold\">defined/imported in the preceding code</span>\n",
268
+ "</pre>\n"
269
+ ]
270
+ },
271
+ "metadata": {}
272
+ },
273
+ {
274
+ "output_type": "display_data",
275
+ "data": {
276
+ "text/plain": [
277
+ "\u001b[2m[Step 1: Duration 0.25 seconds| Input tokens: 2,047 | Output tokens: 97]\u001b[0m\n"
278
+ ],
279
+ "text/html": [
280
+ "<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 0.25 seconds| Input tokens: 2,047 | Output tokens: 97]</span>\n",
281
+ "</pre>\n"
282
+ ]
283
+ },
284
+ "metadata": {}
285
+ },
286
+ {
287
+ "output_type": "display_data",
288
+ "data": {
289
+ "text/plain": [
290
+ "\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"
291
+ ],
292
+ "text/html": [
293
+ "<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",
294
+ "</pre>\n"
295
+ ]
296
+ },
297
+ "metadata": {}
298
+ },
299
+ {
300
+ "output_type": "display_data",
301
+ "data": {
302
+ "text/plain": [
303
+ " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",
304
+ " \u001b[38;2;248;248;242;48;2;39;40;34mheight_info\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;34mheight of Christ the Redeemer\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",
305
+ " \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;34mheight_info\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
306
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"
307
+ ],
308
+ "text/html": [
309
+ "<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",
310
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">height_info </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\">\"height of Christ the Redeemer\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
311
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(height_info)</span><span style=\"background-color: #272822\"> </span> \n",
312
+ " ─────────────────────────────────────────────────────��─────────────────────────────────────────────────────────── \n",
313
+ "</pre>\n"
314
+ ]
315
+ },
316
+ "metadata": {}
317
+ },
318
+ {
319
+ "output_type": "display_data",
320
+ "data": {
321
+ "text/plain": [
322
+ "\u001b[1mExecution logs:\u001b[0m\n",
323
+ "## Search Results\n",
324
+ "\n",
325
+ "[Christ the Redeemer | History, Height, & Facts | Britannica](https://www.britannica.com/topic/Christ-the-Redeemer)\n",
326
+ "Christ the Redeemer, colossal statue of Jesus Christ at the summit of Mount Corcovado, Rio de Janeiro, Brazil. It \n",
327
+ "was completed in 1931 and stands 98 feet (30 meters) tall. The statue is the largest Art Deco-style sculpture in \n",
328
+ "the world and is one of Rio de Janeiro's most recognizable landmarks.\n",
329
+ "\n",
330
+ "[Christ the Redeemer (statue) - Wikipedia](https://en.wikipedia.org/wiki/Christ_the_Redeemer_(statue))\n",
331
+ "Christ the Redeemer (Portuguese: Cristo Redentor, standard Brazilian Portuguese: [ˈkɾistu ʁedẽˈtoʁ]) is an Art Deco\n",
332
+ "statue of Jesus in Rio de Janeiro, Brazil, created by French-Polish sculptor Paul Landowski and built by Brazilian \n",
333
+ "engineer Heitor da Silva Costa, in collaboration with French engineer Albert Caquot. Romanian sculptor Gheorghe \n",
334
+ "Leonida sculpted the face.\n",
335
+ "\n",
336
+ "[Christ The Redeemer: Height, History, And Significance Of Brazil's \n",
337
+ "...](https://travelpander.com/christ-the-redeemer-how-tall/)\n",
338
+ "The exact height of Christ the Redeemer from base to tip is approximately 38 meters (125 feet), including its \n",
339
+ "pedestal. The statue itself is about 30 meters (98 feet) tall, while the pedestal adds an additional 8 meters (26 \n",
340
+ "feet). Key measurements of Christ the Redeemer: 1. Total height (statue + pedestal): 38 meters (125 feet) 2.\n",
341
+ "\n",
342
+ "[Christ the Redeemer - History, Meaning, Height, Construction & Other \n",
343
+ "...](https://worldhistoryedu.com/christ-the-redeemer-history-meaning-height-construction-other-notable-facts/)\n",
344
+ "By 1931, the Christ the Redeemer statue was up and looked over the lands. All in all, it cost, at the time, about a\n",
345
+ "quarter of a million USD to complete the statue. In today's US Dollar equivalent, that figure is around $ 4 \n",
346
+ "million. Christ the Redeemer was inaugurated on 12th October 1931. Renovations and Restoration\n",
347
+ "\n",
348
+ "[Christ The Redeemer Statue: Fascinating Facts, History, And Height Of \n",
349
+ "...](https://travelpander.com/brazil-statue-of-christ-the-redeemer-facts/)\n",
350
+ "The Christ the Redeemer statue in Brazil was completed in 1931. It stands 30 meters tall and has arms measuring 28 \n",
351
+ "meters. The statue weighs 635 metric tons ... Brazil, stands at a height of 30 meters (98 feet) without its \n",
352
+ "pedestal. The total height, including the pedestal, reaches 38 meters (125 feet).\n",
353
+ "\n",
354
+ "[Dimensions of Christ the Redeemer - Wonders of the \n",
355
+ "world](https://www.wonders-of-the-world.net/Christ-the-Redeemer/Dimensions-of-Christ-the-Redeemer.php)\n",
356
+ "Christ the Redeemer of Rio, on the hill of Corcovado, is a large statue, but it is far from being among the highest\n",
357
+ "in the world. It measures 38m high, of which 8m for the base. ... Total height: 38m; Height of the statue: 30m; \n",
358
+ "Height of the pedestal: 8m; Height of the head: 3,75m; Lenght of a hand: 3,20m; Width: 8,50m; Total Scope: 28m;\n",
359
+ "\n",
360
+ "[Christ the Redeemer: 12 facts about Brazil's beloved \n",
361
+ "monument](https://www.goaheadtours.com/travel-blog/articles/facts-about-christ-the-redeemer)\n",
362
+ "The dynamic city on Brazil's southeastern coast is known for many things—its gorgeous beaches, legendary Carnival, \n",
363
+ "and the iconic, towering statue of Jesus known as Christ the Redeemer, or Cristo Redentor in Portuguese. The statue\n",
364
+ "stands 98 feet tall with arms spanning 92 feet and sits on a 26-foot-high pedestal.\n",
365
+ "\n",
366
+ "[Christ the Redeemer - 7 Wonders](https://7wonders.org/south-america/brazil/rio-de-janeiro/christ-redeemer/)\n",
367
+ "The statue of Christ the Redeemer is located at the top of Corcovado Mountain. The entire monument of statue of \n",
368
+ "Christ the Redeemer is 38m high with the statue accounting for 30m and overlooking the city of Rio de Janeiro is \n",
369
+ "one of the tallest statues in the world; the span from finger tip to fingertip is 28m and there is a small chapel \n",
370
+ "housed in the base.\n",
371
+ "\n",
372
+ "[Christ the Redeemer - Paul Landowski](https://www.paul-landowski.com/en/le-christ-de-rio/)\n",
373
+ "Height of the head: 3.75 meters. The order of the archbishop of Rio with Heitor da Silva Costa. In May 1922, the \n",
374
+ "\"catholic Circle\" of Rio takes up a 63 years old idea, which consisted in building a figure of Christ on a hill \n",
375
+ "overhanging the city and the bay of Rio. Among several proposals for a \"monument with Christ the Redeemer\", the ...\n",
376
+ "\n",
377
+ "[Christ The Redeemer Statue (Everything To Know Before A \n",
378
+ "Visit)](https://thetouristchecklist.com/christ-the-redeemer-statue/)\n",
379
+ "The Christ the Redeemer Statue is one of the most iconic landmarks in the world. The sheer size and stature of this\n",
380
+ "colossal statue of Jesus Christ dominate the skyline of Rio de Janeiro, Brazil. At 30 meters tall, not including \n",
381
+ "its 8 meter pedestal, this masterpiece sits atop Corcovado Mountain, which rises 700 meters above the ground. ...\n",
382
+ "\n",
383
+ "Out: None\n"
384
+ ],
385
+ "text/html": [
386
+ "<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",
387
+ "## Search Results\n",
388
+ "\n",
389
+ "[Christ the Redeemer | History, Height, &amp; Facts | Britannica](https://www.britannica.com/topic/Christ-the-Redeemer)\n",
390
+ "Christ the Redeemer, colossal statue of Jesus Christ at the summit of Mount Corcovado, Rio de Janeiro, Brazil. It \n",
391
+ "was completed in 1931 and stands 98 feet (30 meters) tall. The statue is the largest Art Deco-style sculpture in \n",
392
+ "the world and is one of Rio de Janeiro's most recognizable landmarks.\n",
393
+ "\n",
394
+ "[Christ the Redeemer (statue) - Wikipedia](https://en.wikipedia.org/wiki/Christ_the_Redeemer_(statue))\n",
395
+ "Christ the Redeemer (Portuguese: Cristo Redentor, standard Brazilian Portuguese: [ˈkɾistu ʁedẽˈtoʁ]) is an Art Deco\n",
396
+ "statue of Jesus in Rio de Janeiro, Brazil, created by French-Polish sculptor Paul Landowski and built by Brazilian \n",
397
+ "engineer Heitor da Silva Costa, in collaboration with French engineer Albert Caquot. Romanian sculptor Gheorghe \n",
398
+ "Leonida sculpted the face.\n",
399
+ "\n",
400
+ "[Christ The Redeemer: Height, History, And Significance Of Brazil's \n",
401
+ "...](https://travelpander.com/christ-the-redeemer-how-tall/)\n",
402
+ "The exact height of Christ the Redeemer from base to tip is approximately 38 meters (125 feet), including its \n",
403
+ "pedestal. The statue itself is about 30 meters (98 feet) tall, while the pedestal adds an additional 8 meters (26 \n",
404
+ "feet). Key measurements of Christ the Redeemer: 1. Total height (statue + pedestal): 38 meters (125 feet) 2.\n",
405
+ "\n",
406
+ "[Christ the Redeemer - History, Meaning, Height, Construction &amp; Other \n",
407
+ "...](https://worldhistoryedu.com/christ-the-redeemer-history-meaning-height-construction-other-notable-facts/)\n",
408
+ "By 1931, the Christ the Redeemer statue was up and looked over the lands. All in all, it cost, at the time, about a\n",
409
+ "quarter of a million USD to complete the statue. In today's US Dollar equivalent, that figure is around $ 4 \n",
410
+ "million. Christ the Redeemer was inaugurated on 12th October 1931. Renovations and Restoration\n",
411
+ "\n",
412
+ "[Christ The Redeemer Statue: Fascinating Facts, History, And Height Of \n",
413
+ "...](https://travelpander.com/brazil-statue-of-christ-the-redeemer-facts/)\n",
414
+ "The Christ the Redeemer statue in Brazil was completed in 1931. It stands 30 meters tall and has arms measuring 28 \n",
415
+ "meters. The statue weighs 635 metric tons ... Brazil, stands at a height of 30 meters (98 feet) without its \n",
416
+ "pedestal. The total height, including the pedestal, reaches 38 meters (125 feet).\n",
417
+ "\n",
418
+ "[Dimensions of Christ the Redeemer - Wonders of the \n",
419
+ "world](https://www.wonders-of-the-world.net/Christ-the-Redeemer/Dimensions-of-Christ-the-Redeemer.php)\n",
420
+ "Christ the Redeemer of Rio, on the hill of Corcovado, is a large statue, but it is far from being among the highest\n",
421
+ "in the world. It measures 38m high, of which 8m for the base. ... Total height: 38m; Height of the statue: 30m; \n",
422
+ "Height of the pedestal: 8m; Height of the head: 3,75m; Lenght of a hand: 3,20m; Width: 8,50m; Total Scope: 28m;\n",
423
+ "\n",
424
+ "[Christ the Redeemer: 12 facts about Brazil's beloved \n",
425
+ "monument](https://www.goaheadtours.com/travel-blog/articles/facts-about-christ-the-redeemer)\n",
426
+ "The dynamic city on Brazil's southeastern coast is known for many things—its gorgeous beaches, legendary Carnival, \n",
427
+ "and the iconic, towering statue of Jesus known as Christ the Redeemer, or Cristo Redentor in Portuguese. The statue\n",
428
+ "stands 98 feet tall with arms spanning 92 feet and sits on a 26-foot-high pedestal.\n",
429
+ "\n",
430
+ "[Christ the Redeemer - 7 Wonders](https://7wonders.org/south-america/brazil/rio-de-janeiro/christ-redeemer/)\n",
431
+ "The statue of Christ the Redeemer is located at the top of Corcovado Mountain. The entire monument of statue of \n",
432
+ "Christ the Redeemer is 38m high with the statue accounting for 30m and overlooking the city of Rio de Janeiro is \n",
433
+ "one of the tallest statues in the world; the span from finger tip to fingertip is 28m and there is a small chapel \n",
434
+ "housed in the base.\n",
435
+ "\n",
436
+ "[Christ the Redeemer - Paul Landowski](https://www.paul-landowski.com/en/le-christ-de-rio/)\n",
437
+ "Height of the head: 3.75 meters. The order of the archbishop of Rio with Heitor da Silva Costa. In May 1922, the \n",
438
+ "\"catholic Circle\" of Rio takes up a 63 years old idea, which consisted in building a figure of Christ on a hill \n",
439
+ "overhanging the city and the bay of Rio. Among several proposals for a \"monument with Christ the Redeemer\", the ...\n",
440
+ "\n",
441
+ "[Christ The Redeemer Statue (Everything To Know Before A \n",
442
+ "Visit)](https://thetouristchecklist.com/christ-the-redeemer-statue/)\n",
443
+ "The Christ the Redeemer Statue is one of the most iconic landmarks in the world. The sheer size and stature of this\n",
444
+ "colossal statue of Jesus Christ dominate the skyline of Rio de Janeiro, Brazil. At 30 meters tall, not including \n",
445
+ "its 8 meter pedestal, this masterpiece sits atop Corcovado Mountain, which rises 700 meters above the ground. ...\n",
446
+ "\n",
447
+ "Out: None\n",
448
+ "</pre>\n"
449
+ ]
450
+ },
451
+ "metadata": {}
452
+ },
453
+ {
454
+ "output_type": "display_data",
455
+ "data": {
456
+ "text/plain": [
457
+ "\u001b[2m[Step 2: Duration 1.08 seconds| Input tokens: 4,377 | Output tokens: 167]\u001b[0m\n"
458
+ ],
459
+ "text/html": [
460
+ "<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.08 seconds| Input tokens: 4,377 | Output tokens: 167]</span>\n",
461
+ "</pre>\n"
462
+ ]
463
+ },
464
+ "metadata": {}
465
+ },
466
+ {
467
+ "output_type": "display_data",
468
+ "data": {
469
+ "text/plain": [
470
+ "\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"
471
+ ],
472
+ "text/html": [
473
+ "<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",
474
+ "</pre>\n"
475
+ ]
476
+ },
477
+ "metadata": {}
478
+ },
479
+ {
480
+ "output_type": "display_data",
481
+ "data": {
482
+ "text/plain": [
483
+ " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",
484
+ " \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;34m38 meters\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",
485
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"
486
+ ],
487
+ "text/html": [
488
+ "<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",
489
+ " <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\">\"38 meters\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
490
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
491
+ "</pre>\n"
492
+ ]
493
+ },
494
+ "metadata": {}
495
+ },
496
+ {
497
+ "output_type": "display_data",
498
+ "data": {
499
+ "text/plain": [
500
+ "\u001b[1;38;2;212;183;2mOut - Final answer: 38 meters\u001b[0m\n"
501
+ ],
502
+ "text/html": [
503
+ "<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: 38 meters</span>\n",
504
+ "</pre>\n"
505
+ ]
506
+ },
507
+ "metadata": {}
508
+ },
509
+ {
510
+ "output_type": "display_data",
511
+ "data": {
512
+ "text/plain": [
513
+ "\u001b[2m[Step 3: Duration 0.12 seconds| Input tokens: 8,076 | Output tokens: 228]\u001b[0m\n"
514
+ ],
515
+ "text/html": [
516
+ "<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 0.12 seconds| Input tokens: 8,076 | Output tokens: 228]</span>\n",
517
+ "</pre>\n"
518
+ ]
519
+ },
520
+ "metadata": {}
521
+ },
522
+ {
523
+ "output_type": "stream",
524
+ "name": "stdout",
525
+ "text": [
526
+ "38 meters\n"
527
+ ]
528
+ }
529
+ ]
530
+ },
531
+ {
532
+ "cell_type": "code",
533
+ "source": [
534
+ "from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel\n",
535
+ "\n",
536
+ "# Inicialize o modelo\n",
537
+ "model = InferenceClientModel()\n",
538
+ "\n",
539
+ "# Inicialize a ferramenta de busca\n",
540
+ "search_tool = DuckDuckGoSearchTool()\n",
541
+ "\n",
542
+ "# Crie o agente com a ferramenta de busca\n",
543
+ "agent = CodeAgent(tools=[search_tool], model=model)\n",
544
+ "\n",
545
+ "# Execute uma consulta\n",
546
+ "response = agent.run(\"Quem foi Ada Lovelace?\")\n",
547
+ "print(response)\n"
548
+ ],
549
+ "metadata": {
550
+ "colab": {
551
+ "base_uri": "https://localhost:8080/",
552
+ "height": 1000
553
+ },
554
+ "id": "wPWT5CS5vcHZ",
555
+ "outputId": "786caad3-610a-437c-e4e1-03b9575e6f92"
556
+ },
557
+ "execution_count": 31,
558
+ "outputs": [
559
+ {
560
+ "output_type": "display_data",
561
+ "data": {
562
+ "text/plain": [
563
+ "\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",
564
+ "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
565
+ "\u001b[38;2;212;183;2m│\u001b[0m \u001b[1mQuem foi Ada Lovelace?\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
566
+ "\u001b[38;2;212;183;2m│\u001b[0m \u001b[38;2;212;183;2m│\u001b[0m\n",
567
+ "\u001b[38;2;212;183;2m╰─\u001b[0m\u001b[38;2;212;183;2m InferenceClientModel - Qwen/Qwen2.5-Coder-32B-Instruct \u001b[0m\u001b[38;2;212;183;2m───────────────────────────────────────────────────────\u001b[0m\u001b[38;2;212;183;2m─╯\u001b[0m\n"
568
+ ],
569
+ "text/html": [
570
+ "<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",
571
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
572
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"font-weight: bold\">Quem foi Ada Lovelace?</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
573
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">│</span>\n",
574
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702\">╰─ InferenceClientModel - Qwen/Qwen2.5-Coder-32B-Instruct ────────────────────────────────────────────────────────╯</span>\n",
575
+ "</pre>\n"
576
+ ]
577
+ },
578
+ "metadata": {}
579
+ },
580
+ {
581
+ "output_type": "display_data",
582
+ "data": {
583
+ "text/plain": [
584
+ "\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"
585
+ ],
586
+ "text/html": [
587
+ "<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",
588
+ "</pre>\n"
589
+ ]
590
+ },
591
+ "metadata": {}
592
+ },
593
+ {
594
+ "output_type": "display_data",
595
+ "data": {
596
+ "text/plain": [
597
+ " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",
598
+ " \u001b[38;2;248;248;242;48;2;39;40;34mada_lovelace_info\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;34mWho is Ada Lovelace?\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",
599
+ " \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;34mada_lovelace_info\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
600
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"
601
+ ],
602
+ "text/html": [
603
+ "<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",
604
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">ada_lovelace_info </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\">\"Who is Ada Lovelace?\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
605
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(ada_lovelace_info)</span><span style=\"background-color: #272822\"> </span> \n",
606
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
607
+ "</pre>\n"
608
+ ]
609
+ },
610
+ "metadata": {}
611
+ },
612
+ {
613
+ "output_type": "display_data",
614
+ "data": {
615
+ "text/plain": [
616
+ "\u001b[1mExecution logs:\u001b[0m\n",
617
+ "## Search Results\n",
618
+ "\n",
619
+ "[Ada Lovelace | Biography, Computer, & Facts | Britannica](https://www.britannica.com/biography/Ada-Lovelace)\n",
620
+ "Ada Lovelace, English mathematician, an associate of Charles Babbage, for whose digital computer prototype, the \n",
621
+ "Analytical Engine, she created a program in 1843. She has been called the first computer programmer. Ada Lovelace \n",
622
+ "Day, the second Tuesday in October, honors women's contributions to science and technology.\n",
623
+ "\n",
624
+ "[Ada Lovelace - Wikipedia](https://en.wikipedia.org/wiki/Ada_Lovelace)\n",
625
+ "Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 November 1852), also known as Ada \n",
626
+ "Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage's proposed \n",
627
+ "mechanical general-purpose computer, the Analytical Engine.She was the first to recognise that the machine had \n",
628
+ "applications beyond pure calculation.\n",
629
+ "\n",
630
+ "[Ada Lovelace - Quotes, Children & Facts - Biography](https://www.biography.com/scholars-educators/ada-lovelace)\n",
631
+ "Ada Lovelace, born as Augusta Ada Byron on December 10, 1815, was the only legitimate child of the famous poet Lord\n",
632
+ "George Gordon Byron. Lord Byron's marriage to Lovelace's mother, Lady Anne ...\n",
633
+ "\n",
634
+ "[Ada Lovelace: The First Computer Programmer | \n",
635
+ "Britannica](https://www.britannica.com/story/ada-lovelace-the-first-computer-programmer)\n",
636
+ "Ada Lovelace was the daughter of the noted poet Lord Byron and Annabella Milbanke Byron. Their marriage lasted \n",
637
+ "little more than a year, and Ada never met her father. To counteract the \"dangerous\" mental tendencies of Ada's \n",
638
+ "father, Annabella emphasized music, French, and mathematics in her daughter's studies. ...\n",
639
+ "\n",
640
+ "[Biography of Ada Lovelace, First Computer Programmer - \n",
641
+ "ThoughtCo](https://www.thoughtco.com/ada-lovelace-biography-5113321)\n",
642
+ "Ada Lovelace (born Augusta Ada Byron; December 10, 1815- November 27, 1852) was an English mathematician who has \n",
643
+ "been called the first computer programmer for writing an algorithm, or a set of operating instructions, for the \n",
644
+ "early computing machine built by Charles Babbage in 1821. As the daughter of the famed English Romantic poet Lord \n",
645
+ "Byron, her life has been characterized as a constant ...\n",
646
+ "\n",
647
+ "[Ada Lovelace - National Geographic Kids](https://kids.nationalgeographic.com/history/article/ada-lovelace)\n",
648
+ "Ada Lovelace excelled at them—and became what some say is the world's first computer programmer. Born in England on\n",
649
+ "December 10, 1815, Ada was the daughter of the famous poet Lord George Byron and his wife, Lady Anne Byron. Her \n",
650
+ "father left the family just weeks after Ada's birth, but her mother insisted that her daughter have expert ...\n",
651
+ "\n",
652
+ "[10 Facts About Ada Lovelace: The First Computer \n",
653
+ "Programmer](https://www.historyhit.com/facts-about-ada-lovelace-the-first-computer-programmer/)\n",
654
+ "Ada Lovelace was born on 10 December 1815 in London, as Augusta Ada Byron, and was the only legitimate child of \n",
655
+ "Lord George Gordon Byron and his wife Lady Annabella Byron. Today considered one of Britain's greatest Romantic \n",
656
+ "poets, Lord Byron was infamous for his many affairs and dark moods. Though an unconventional match for the deeply \n",
657
+ "...\n",
658
+ "\n",
659
+ "[Who was Ada? - Ada Lovelace Day](https://findingada.com/about/who-was-ada/)\n",
660
+ "Who was Ada Lovelace? By Sydney Padua, author of The Thrilling Adventures of Lovelace & Babbage.. Read the longer \n",
661
+ "biography of Ada Lovelace by Suw Charman-Anderson, taken from our book, A Passion for Science: Stories of Discovery\n",
662
+ "and Invention, but for a short overview of her life and achievements, read on!. The woman most often known as 'Ada \n",
663
+ "Lovelace' was born Ada Gordon in 1815, sole ...\n",
664
+ "\n",
665
+ "[Ada Lovelace: The World's First Computer Programmer Who Predicted \n",
666
+ "...](https://www.nist.gov/blogs/taking-measure/ada-lovelace-worlds-first-computer-programmer-who-predicted-artifici\n",
667
+ "al)\n",
668
+ "Augusta Ada King, the Countess of Lovelace, was born in London on Dec. 10, 1815.She's most well known as Ada \n",
669
+ "Lovelace. Her parents were the English poet Lord Byron and Lady Anne Isabella Milbanke.. After her parents' \n",
670
+ "marriage ended, Lovelace had an isolated childhood at the country estate of her grandparents, where her mother \n",
671
+ "moved after leaving London.\n",
672
+ "\n",
673
+ "[Ada Lovelace - Lemelson](https://lemelson.mit.edu/resources/ada-lovelace)\n",
674
+ "Ada Lovelace (birth name Augusta Ada Byron) was born in London, England on December 10, 1815 to Anne Milbank and \n",
675
+ "the famous poet, Lord Byron. Her father and mother separated months after she was born. Lord Byron moved to Greece \n",
676
+ "where he died when Ada was eight years old. Ada's childhood was not a traditional one.\n",
677
+ "\n",
678
+ "Out: None\n"
679
+ ],
680
+ "text/html": [
681
+ "<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",
682
+ "## Search Results\n",
683
+ "\n",
684
+ "[Ada Lovelace | Biography, Computer, &amp; Facts | Britannica](https://www.britannica.com/biography/Ada-Lovelace)\n",
685
+ "Ada Lovelace, English mathematician, an associate of Charles Babbage, for whose digital computer prototype, the \n",
686
+ "Analytical Engine, she created a program in 1843. She has been called the first computer programmer. Ada Lovelace \n",
687
+ "Day, the second Tuesday in October, honors women's contributions to science and technology.\n",
688
+ "\n",
689
+ "[Ada Lovelace - Wikipedia](https://en.wikipedia.org/wiki/Ada_Lovelace)\n",
690
+ "Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 November 1852), also known as Ada \n",
691
+ "Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage's proposed \n",
692
+ "mechanical general-purpose computer, the Analytical Engine.She was the first to recognise that the machine had \n",
693
+ "applications beyond pure calculation.\n",
694
+ "\n",
695
+ "[Ada Lovelace - Quotes, Children &amp; Facts - Biography](https://www.biography.com/scholars-educators/ada-lovelace)\n",
696
+ "Ada Lovelace, born as Augusta Ada Byron on December 10, 1815, was the only legitimate child of the famous poet Lord\n",
697
+ "George Gordon Byron. Lord Byron's marriage to Lovelace's mother, Lady Anne ...\n",
698
+ "\n",
699
+ "[Ada Lovelace: The First Computer Programmer | \n",
700
+ "Britannica](https://www.britannica.com/story/ada-lovelace-the-first-computer-programmer)\n",
701
+ "Ada Lovelace was the daughter of the noted poet Lord Byron and Annabella Milbanke Byron. Their marriage lasted \n",
702
+ "little more than a year, and Ada never met her father. To counteract the \"dangerous\" mental tendencies of Ada's \n",
703
+ "father, Annabella emphasized music, French, and mathematics in her daughter's studies. ...\n",
704
+ "\n",
705
+ "[Biography of Ada Lovelace, First Computer Programmer - \n",
706
+ "ThoughtCo](https://www.thoughtco.com/ada-lovelace-biography-5113321)\n",
707
+ "Ada Lovelace (born Augusta Ada Byron; December 10, 1815- November 27, 1852) was an English mathematician who has \n",
708
+ "been called the first computer programmer for writing an algorithm, or a set of operating instructions, for the \n",
709
+ "early computing machine built by Charles Babbage in 1821. As the daughter of the famed English Romantic poet Lord \n",
710
+ "Byron, her life has been characterized as a constant ...\n",
711
+ "\n",
712
+ "[Ada Lovelace - National Geographic Kids](https://kids.nationalgeographic.com/history/article/ada-lovelace)\n",
713
+ "Ada Lovelace excelled at them—and became what some say is the world's first computer programmer. Born in England on\n",
714
+ "December 10, 1815, Ada was the daughter of the famous poet Lord George Byron and his wife, Lady Anne Byron. Her \n",
715
+ "father left the family just weeks after Ada's birth, but her mother insisted that her daughter have expert ...\n",
716
+ "\n",
717
+ "[10 Facts About Ada Lovelace: The First Computer \n",
718
+ "Programmer](https://www.historyhit.com/facts-about-ada-lovelace-the-first-computer-programmer/)\n",
719
+ "Ada Lovelace was born on 10 December 1815 in London, as Augusta Ada Byron, and was the only legitimate child of \n",
720
+ "Lord George Gordon Byron and his wife Lady Annabella Byron. Today considered one of Britain's greatest Romantic \n",
721
+ "poets, Lord Byron was infamous for his many affairs and dark moods. Though an unconventional match for the deeply \n",
722
+ "...\n",
723
+ "\n",
724
+ "[Who was Ada? - Ada Lovelace Day](https://findingada.com/about/who-was-ada/)\n",
725
+ "Who was Ada Lovelace? By Sydney Padua, author of The Thrilling Adventures of Lovelace &amp; Babbage.. Read the longer \n",
726
+ "biography of Ada Lovelace by Suw Charman-Anderson, taken from our book, A Passion for Science: Stories of Discovery\n",
727
+ "and Invention, but for a short overview of her life and achievements, read on!. The woman most often known as 'Ada \n",
728
+ "Lovelace' was born Ada Gordon in 1815, sole ...\n",
729
+ "\n",
730
+ "[Ada Lovelace: The World's First Computer Programmer Who Predicted \n",
731
+ "...](https://www.nist.gov/blogs/taking-measure/ada-lovelace-worlds-first-computer-programmer-who-predicted-artifici\n",
732
+ "al)\n",
733
+ "Augusta Ada King, the Countess of Lovelace, was born in London on Dec. 10, 1815.She's most well known as Ada \n",
734
+ "Lovelace. Her parents were the English poet Lord Byron and Lady Anne Isabella Milbanke.. After her parents' \n",
735
+ "marriage ended, Lovelace had an isolated childhood at the country estate of her grandparents, where her mother \n",
736
+ "moved after leaving London.\n",
737
+ "\n",
738
+ "[Ada Lovelace - Lemelson](https://lemelson.mit.edu/resources/ada-lovelace)\n",
739
+ "Ada Lovelace (birth name Augusta Ada Byron) was born in London, England on December 10, 1815 to Anne Milbank and \n",
740
+ "the famous poet, Lord Byron. Her father and mother separated months after she was born. Lord Byron moved to Greece \n",
741
+ "where he died when Ada was eight years old. Ada's childhood was not a traditional one.\n",
742
+ "\n",
743
+ "Out: None\n",
744
+ "</pre>\n"
745
+ ]
746
+ },
747
+ "metadata": {}
748
+ },
749
+ {
750
+ "output_type": "display_data",
751
+ "data": {
752
+ "text/plain": [
753
+ "\u001b[2m[Step 1: Duration 1.31 seconds| Input tokens: 2,045 | Output tokens: 68]\u001b[0m\n"
754
+ ],
755
+ "text/html": [
756
+ "<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 1.31 seconds| Input tokens: 2,045 | Output tokens: 68]</span>\n",
757
+ "</pre>\n"
758
+ ]
759
+ },
760
+ "metadata": {}
761
+ },
762
+ {
763
+ "output_type": "display_data",
764
+ "data": {
765
+ "text/plain": [
766
+ "\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"
767
+ ],
768
+ "text/html": [
769
+ "<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",
770
+ "</pre>\n"
771
+ ]
772
+ },
773
+ "metadata": {}
774
+ },
775
+ {
776
+ "output_type": "display_data",
777
+ "data": {
778
+ "text/plain": [
779
+ " ─ \u001b[1mExecuting parsed code:\u001b[0m ──────────────────────────────────────────────────────────────────────────────────────── \n",
780
+ " \u001b[38;2;248;248;242;48;2;39;40;34mada_lovelace_summary\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;34m(\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
781
+ " \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;34mAda Lovelace, born as Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 November \u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
782
+ " \u001b[38;2;230;219;116;48;2;39;40;34m1852), \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
783
+ " \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;34mwas an English mathematician and writer. She is best known for her work on Charles Babbage\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 proposed \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
784
+ " \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;34mmechanical general-purpose computer, the Analytical Engine. She is recognized as the first computer \u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
785
+ " \u001b[38;2;230;219;116;48;2;39;40;34mprogrammer \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
786
+ " \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;34mfor writing an algorithm intended for the Analytical Engine. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
787
+ " \u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
788
+ " \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;34mada_lovelace_summary\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
789
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n"
790
+ ],
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=\"font-weight: bold\">Executing parsed code:</span> ──────────────────────────────────────────────────────────────────────────────────────── \n",
793
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">ada_lovelace_summary </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=\"background-color: #272822\"> </span> \n",
794
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"Ada Lovelace, born as Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 November </span><span style=\"background-color: #272822\"> </span> \n",
795
+ " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">1852), \"</span><span style=\"background-color: #272822\"> </span> \n",
796
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"was an English mathematician and writer. She is best known for her work on Charles Babbage's proposed \"</span><span style=\"background-color: #272822\"> </span> \n",
797
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"mechanical general-purpose computer, the Analytical Engine. She is recognized as the first computer </span><span style=\"background-color: #272822\"> </span> \n",
798
+ " <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">programmer \"</span><span style=\"background-color: #272822\"> </span> \n",
799
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"for writing an algorithm intended for the Analytical Engine. \"</span><span style=\"background-color: #272822\"> </span> \n",
800
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
801
+ " <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">final_answer(ada_lovelace_summary)</span><span style=\"background-color: #272822\"> </span> \n",
802
+ " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
803
+ "</pre>\n"
804
+ ]
805
+ },
806
+ "metadata": {}
807
+ },
808
+ {
809
+ "output_type": "display_data",
810
+ "data": {
811
+ "text/plain": [
812
+ "\u001b[1;38;2;212;183;2mOut - Final answer: Ada Lovelace, born as Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 \u001b[0m\n",
813
+ "\u001b[1;38;2;212;183;2mNovember 1852), was an English mathematician and writer. She is best known for her work on Charles Babbage's \u001b[0m\n",
814
+ "\u001b[1;38;2;212;183;2mproposed mechanical general-purpose computer, the Analytical Engine. She is recognized as the first computer \u001b[0m\n",
815
+ "\u001b[1;38;2;212;183;2mprogrammer for writing an algorithm intended for the Analytical Engine. \u001b[0m\n"
816
+ ],
817
+ "text/html": [
818
+ "<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: Ada Lovelace, born as Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 </span>\n",
819
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">November 1852), was an English mathematician and writer. She is best known for her work on Charles Babbage's </span>\n",
820
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">proposed mechanical general-purpose computer, the Analytical Engine. She is recognized as the first computer </span>\n",
821
+ "<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">programmer for writing an algorithm intended for the Analytical Engine. </span>\n",
822
+ "</pre>\n"
823
+ ]
824
+ },
825
+ "metadata": {}
826
+ },
827
+ {
828
+ "output_type": "display_data",
829
+ "data": {
830
+ "text/plain": [
831
+ "\u001b[2m[Step 2: Duration 0.10 seconds| Input tokens: 5,344 | Output tokens: 228]\u001b[0m\n"
832
+ ],
833
+ "text/html": [
834
+ "<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.10 seconds| Input tokens: 5,344 | Output tokens: 228]</span>\n",
835
+ "</pre>\n"
836
+ ]
837
+ },
838
+ "metadata": {}
839
+ },
840
+ {
841
+ "output_type": "stream",
842
+ "name": "stdout",
843
+ "text": [
844
+ "Ada Lovelace, born as Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 - 27 November 1852), was an English mathematician and writer. She is best known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She is recognized as the first computer programmer for writing an algorithm intended for the Analytical Engine. \n"
845
+ ]
846
+ }
847
+ ]
848
+ }
849
+ ]
850
+ }