-
Notifications
You must be signed in to change notification settings - Fork 0
/
llama-index-web-agent.ipynb.txt
593 lines (593 loc) · 67.4 KB
/
llama-index-web-agent.ipynb.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"source": [
"# Web browsing agents with LlamaIndex\n",
"### Setup agent functions"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2023-11-11T19:03:45.020995Z",
"start_time": "2023-11-11T19:03:25.084592Z"
},
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting llama-index\n",
" Using cached llama_index-0.8.67-py3-none-any.whl (859 kB)\n",
"Requirement already satisfied: SQLAlchemy[asyncio]>=1.4.49 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (2.0.23)\n",
"Collecting aiostream<0.6.0,>=0.5.2 (from llama-index)\n",
" Using cached aiostream-0.5.2-py3-none-any.whl (39 kB)\n",
"Collecting dataclasses-json<0.6.0,>=0.5.7 (from llama-index)\n",
" Using cached dataclasses_json-0.5.14-py3-none-any.whl (26 kB)\n",
"Collecting deprecated>=1.2.9.3 (from llama-index)\n",
" Using cached Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)\n",
"Collecting fsspec>=2023.5.0 (from llama-index)\n",
" Using cached fsspec-2023.10.0-py3-none-any.whl (166 kB)\n",
"Requirement already satisfied: langchain>=0.0.303 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (0.0.334)\n",
"Requirement already satisfied: nest-asyncio<2.0.0,>=1.5.8 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (1.5.8)\n",
"Collecting nltk<4.0.0,>=3.8.1 (from llama-index)\n",
" Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB)\n",
"Requirement already satisfied: numpy in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (1.25.2)\n",
"Requirement already satisfied: openai>=1.1.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (1.2.3)\n",
"Collecting pandas (from llama-index)\n",
" Downloading pandas-2.1.3-cp311-cp311-macosx_11_0_arm64.whl (10.8 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m10.8/10.8 MB\u001b[0m \u001b[31m71.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m \u001b[36m0:00:01\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: tenacity<9.0.0,>=8.2.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (8.2.3)\n",
"Collecting tiktoken>=0.3.3 (from llama-index)\n",
" Downloading tiktoken-0.5.1-cp311-cp311-macosx_11_0_arm64.whl (924 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m924.4/924.4 kB\u001b[0m \u001b[31m48.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: typing-extensions>=4.5.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (4.8.0)\n",
"Requirement already satisfied: typing-inspect>=0.8.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from llama-index) (0.9.0)\n",
"Collecting urllib3<2 (from llama-index)\n",
" Using cached urllib3-1.26.18-py2.py3-none-any.whl (143 kB)\n",
"Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from dataclasses-json<0.6.0,>=0.5.7->llama-index) (3.20.1)\n",
"Collecting wrapt<2,>=1.10 (from deprecated>=1.2.9.3->llama-index)\n",
" Using cached wrapt-1.16.0-cp311-cp311-macosx_11_0_arm64.whl (38 kB)\n",
"Requirement already satisfied: PyYAML>=5.3 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (6.0.1)\n",
"Requirement already satisfied: aiohttp<4.0.0,>=3.8.3 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (3.8.6)\n",
"Requirement already satisfied: anyio<4.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (3.7.1)\n",
"Requirement already satisfied: jsonpatch<2.0,>=1.33 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (1.33)\n",
"Requirement already satisfied: langsmith<0.1.0,>=0.0.62 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (0.0.63)\n",
"Requirement already satisfied: pydantic<3,>=1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (2.4.2)\n",
"Requirement already satisfied: requests<3,>=2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from langchain>=0.0.303->llama-index) (2.31.0)\n",
"Requirement already satisfied: click in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from nltk<4.0.0,>=3.8.1->llama-index) (8.1.7)\n",
"Collecting joblib (from nltk<4.0.0,>=3.8.1->llama-index)\n",
" Using cached joblib-1.3.2-py3-none-any.whl (302 kB)\n",
"Collecting regex>=2021.8.3 (from nltk<4.0.0,>=3.8.1->llama-index)\n",
" Downloading regex-2023.10.3-cp311-cp311-macosx_11_0_arm64.whl (291 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m291.0/291.0 kB\u001b[0m \u001b[31m37.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: tqdm in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from nltk<4.0.0,>=3.8.1->llama-index) (4.66.1)\n",
"Requirement already satisfied: distro<2,>=1.7.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from openai>=1.1.0->llama-index) (1.8.0)\n",
"Requirement already satisfied: httpx<1,>=0.23.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from openai>=1.1.0->llama-index) (0.25.1)\n",
"Requirement already satisfied: greenlet!=0.4.17 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from SQLAlchemy[asyncio]>=1.4.49->llama-index) (3.0.0)\n",
"Requirement already satisfied: mypy-extensions>=0.3.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from typing-inspect>=0.8.0->llama-index) (1.0.0)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pandas->llama-index) (2.8.2)\n",
"Collecting pytz>=2020.1 (from pandas->llama-index)\n",
" Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)\n",
"Collecting tzdata>=2022.1 (from pandas->llama-index)\n",
" Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)\n",
"Requirement already satisfied: attrs>=17.3.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (23.1.0)\n",
"Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (3.3.2)\n",
"Requirement already satisfied: multidict<7.0,>=4.5 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (6.0.4)\n",
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (4.0.3)\n",
"Requirement already satisfied: yarl<2.0,>=1.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (1.9.2)\n",
"Requirement already satisfied: frozenlist>=1.1.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (1.4.0)\n",
"Requirement already satisfied: aiosignal>=1.1.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain>=0.0.303->llama-index) (1.3.1)\n",
"Requirement already satisfied: idna>=2.8 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from anyio<4.0->langchain>=0.0.303->llama-index) (3.4)\n",
"Requirement already satisfied: sniffio>=1.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from anyio<4.0->langchain>=0.0.303->llama-index) (1.3.0)\n",
"Requirement already satisfied: certifi in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from httpx<1,>=0.23.0->openai>=1.1.0->llama-index) (2023.7.22)\n",
"Requirement already satisfied: httpcore in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from httpx<1,>=0.23.0->openai>=1.1.0->llama-index) (1.0.2)\n",
"Requirement already satisfied: jsonpointer>=1.9 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from jsonpatch<2.0,>=1.33->langchain>=0.0.303->llama-index) (2.4)\n",
"Requirement already satisfied: packaging>=17.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from marshmallow<4.0.0,>=3.18.0->dataclasses-json<0.6.0,>=0.5.7->llama-index) (23.2)\n",
"Requirement already satisfied: annotated-types>=0.4.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pydantic<3,>=1->langchain>=0.0.303->llama-index) (0.6.0)\n",
"Requirement already satisfied: pydantic-core==2.10.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pydantic<3,>=1->langchain>=0.0.303->llama-index) (2.10.1)\n",
"Requirement already satisfied: six>=1.5 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas->llama-index) (1.16.0)\n",
"Requirement already satisfied: h11<0.15,>=0.13 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from httpcore->httpx<1,>=0.23.0->openai>=1.1.0->llama-index) (0.14.0)\n",
"Installing collected packages: pytz, wrapt, urllib3, tzdata, regex, joblib, fsspec, aiostream, pandas, nltk, deprecated, dataclasses-json, tiktoken, llama-index\n",
" Attempting uninstall: urllib3\n",
" Found existing installation: urllib3 2.0.7\n",
" Uninstalling urllib3-2.0.7:\n",
" Successfully uninstalled urllib3-2.0.7\n",
" Attempting uninstall: dataclasses-json\n",
" Found existing installation: dataclasses-json 0.6.2\n",
" Uninstalling dataclasses-json-0.6.2:\n",
" Successfully uninstalled dataclasses-json-0.6.2\n",
"Successfully installed aiostream-0.5.2 dataclasses-json-0.5.14 deprecated-1.2.14 fsspec-2023.10.0 joblib-1.3.2 llama-index-0.8.67 nltk-3.8.1 pandas-2.1.3 pytz-2023.3.post1 regex-2023.10.3 tiktoken-0.5.1 tzdata-2023.3 urllib3-1.26.18 wrapt-1.16.0\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.1.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.3.1\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"Requirement already satisfied: playwright in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (1.39.0)\n",
"Requirement already satisfied: greenlet==3.0.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from playwright) (3.0.0)\n",
"Requirement already satisfied: pyee==11.0.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from playwright) (11.0.1)\n",
"Requirement already satisfied: typing-extensions in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pyee==11.0.1->playwright) (4.8.0)\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.1.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.3.1\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n",
"Requirement already satisfied: tarsier in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (0.1.0)\n",
"Requirement already satisfied: google-cloud-vision<4.0.0,>=3.4.5 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from tarsier) (3.4.5)\n",
"Requirement already satisfied: playwright<2.0.0,>=1.39.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from tarsier) (1.39.0)\n",
"Requirement already satisfied: pydantic<3.0.0,>=2.4.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from tarsier) (2.4.2)\n",
"Requirement already satisfied: selenium<5.0.0,>=4.15.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from tarsier) (4.15.2)\n",
"Requirement already satisfied: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-cloud-vision<4.0.0,>=3.4.5->tarsier) (2.14.0)\n",
"Requirement already satisfied: proto-plus<2.0.0dev,>=1.22.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-cloud-vision<4.0.0,>=3.4.5->tarsier) (1.22.3)\n",
"Requirement already satisfied: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-cloud-vision<4.0.0,>=3.4.5->tarsier) (4.25.0)\n",
"Requirement already satisfied: greenlet==3.0.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from playwright<2.0.0,>=1.39.0->tarsier) (3.0.0)\n",
"Requirement already satisfied: pyee==11.0.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from playwright<2.0.0,>=1.39.0->tarsier) (11.0.1)\n",
"Requirement already satisfied: typing-extensions in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pyee==11.0.1->playwright<2.0.0,>=1.39.0->tarsier) (4.8.0)\n",
"Requirement already satisfied: annotated-types>=0.4.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pydantic<3.0.0,>=2.4.2->tarsier) (0.6.0)\n",
"Requirement already satisfied: pydantic-core==2.10.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pydantic<3.0.0,>=2.4.2->tarsier) (2.10.1)\n",
"Requirement already satisfied: urllib3[socks]<3,>=1.26 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from selenium<5.0.0,>=4.15.2->tarsier) (1.26.18)\n",
"Requirement already satisfied: trio~=0.17 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from selenium<5.0.0,>=4.15.2->tarsier) (0.23.1)\n",
"Requirement already satisfied: trio-websocket~=0.9 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from selenium<5.0.0,>=4.15.2->tarsier) (0.11.1)\n",
"Requirement already satisfied: certifi>=2021.10.8 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from selenium<5.0.0,>=4.15.2->tarsier) (2023.7.22)\n",
"Requirement already satisfied: googleapis-common-protos<2.0.dev0,>=1.56.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (1.61.0)\n",
"Requirement already satisfied: google-auth<3.0.dev0,>=2.14.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (2.23.4)\n",
"Requirement already satisfied: requests<3.0.0.dev0,>=2.18.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (2.31.0)\n",
"Requirement already satisfied: grpcio<2.0dev,>=1.33.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (1.59.2)\n",
"Requirement already satisfied: grpcio-status<2.0.dev0,>=1.33.2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (1.59.2)\n",
"Requirement already satisfied: attrs>=20.1.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from trio~=0.17->selenium<5.0.0,>=4.15.2->tarsier) (23.1.0)\n",
"Requirement already satisfied: sortedcontainers in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from trio~=0.17->selenium<5.0.0,>=4.15.2->tarsier) (2.4.0)\n",
"Requirement already satisfied: idna in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from trio~=0.17->selenium<5.0.0,>=4.15.2->tarsier) (3.4)\n",
"Requirement already satisfied: outcome in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from trio~=0.17->selenium<5.0.0,>=4.15.2->tarsier) (1.3.0.post0)\n",
"Requirement already satisfied: sniffio>=1.3.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from trio~=0.17->selenium<5.0.0,>=4.15.2->tarsier) (1.3.0)\n",
"Requirement already satisfied: wsproto>=0.14 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from trio-websocket~=0.9->selenium<5.0.0,>=4.15.2->tarsier) (1.2.0)\n",
"Requirement already satisfied: PySocks!=1.5.7,<2.0,>=1.5.6 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from urllib3[socks]<3,>=1.26->selenium<5.0.0,>=4.15.2->tarsier) (1.7.1)\n",
"Requirement already satisfied: cachetools<6.0,>=2.0.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-auth<3.0.dev0,>=2.14.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (5.3.2)\n",
"Requirement already satisfied: pyasn1-modules>=0.2.1 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-auth<3.0.dev0,>=2.14.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (0.3.0)\n",
"Requirement already satisfied: rsa<5,>=3.1.4 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from google-auth<3.0.dev0,>=2.14.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (4.9)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from requests<3.0.0.dev0,>=2.18.0->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (3.3.2)\n",
"Requirement already satisfied: h11<1,>=0.9.0 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from wsproto>=0.14->trio-websocket~=0.9->selenium<5.0.0,>=4.15.2->tarsier) (0.14.0)\n",
"Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /Users/asimshrestha/Library/Caches/pypoetry/virtualenvs/tarsier-KjefggzA-py3.11/lib/python3.11/site-packages (from pyasn1-modules>=0.2.1->google-auth<3.0.dev0,>=2.14.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0->google-cloud-vision<4.0.0,>=3.4.5->tarsier) (0.5.0)\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.1.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.3.1\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [
"%pip install llama-index\n",
"%pip install playwright\n",
"%pip install tarsier\n",
"!playwright install"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"ExecuteTime": {
"end_time": "2023-11-11T08:46:31.531676Z",
"start_time": "2023-11-11T08:46:31.501731Z"
},
"collapsed": false
},
"outputs": [],
"source": [
"from llama_index.tools import FunctionTool\n",
"from playwright.async_api import async_playwright\n",
"from tarsier import Tarsier, GoogleVisionOCRService\n",
"import os\n",
"\n",
"# Setup Playwright\n",
"p = await async_playwright().__aenter__()\n",
"browser = await p.chromium.launch(headless=False)\n",
"page = await browser.new_page()\n",
"\n",
"# Setup Creds\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-...\"\n",
"google_cloud_credentials = {...}\n",
"\n",
"# Setup Tarsier\n",
"ocr_service = GoogleVisionOCRService(google_cloud_credentials)\n",
"tarsier = Tarsier(ocr_service)\n",
"tag_to_xpath = {}\n",
"\n",
"\n",
"# Define tools/actions\n",
"async def read_page() -> str:\n",
" \"\"\"\n",
" Use to read the current state of the page\n",
" \"\"\"\n",
" page_text, inner_tag_to_xpath = await tarsier.page_to_text(page)\n",
" tag_to_xpath.clear()\n",
" tag_to_xpath.update(inner_tag_to_xpath)\n",
" return page_text\n",
"\n",
"\n",
"read_page_tool = FunctionTool.from_defaults(fn=read_page, async_fn=read_page)\n",
"\n",
"\n",
"async def click(element_id: int) -> str:\n",
" \"\"\"\n",
" Click on an element based on element_id and return the new page state\n",
" \"\"\"\n",
" x_path = tag_to_xpath[element_id]\n",
" print(x_path)\n",
" element = page.locator(x_path)\n",
" await element.scroll_into_view_if_needed()\n",
" await page.wait_for_timeout(1000)\n",
" await element.click()\n",
" await page.wait_for_timeout(2000)\n",
" return await read_page()\n",
"\n",
"\n",
"click_tool = FunctionTool.from_defaults(fn=click, async_fn=click)\n",
"\n",
"\n",
"async def type_text(element_id: int, text: str) -> str:\n",
" \"\"\"\n",
" Input text into a textbox based on element_id and return the new page state\n",
" \"\"\"\n",
" x_path = tag_to_xpath[element_id]\n",
" print(x_path)\n",
" await page.locator(x_path).press_sequentially(text)\n",
" return await read_page()\n",
"\n",
"\n",
"type_text_tool = FunctionTool.from_defaults(fn=type_text, async_fn=type_text)\n",
"\n",
"\n",
"async def press_key(key: str) -> str:\n",
" \"\"\"\n",
" Press a key on the keyboard and return the new page state\n",
" \"\"\"\n",
" await page.keyboard.press(key)\n",
" await page.wait_for_timeout(2000)\n",
" return await read_page()\n",
"\n",
"\n",
"press_key_tool = FunctionTool.from_defaults(fn=press_key, async_fn=press_key)"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"source": [
"### GPT4-V + Tarsier"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"ExecuteTime": {
"end_time": "2023-11-11T07:49:41.232707Z",
"start_time": "2023-11-11T07:49:41.103809Z"
},
"collapsed": false
},
"outputs": [],
"source": [
"from llama_index.agent import OpenAIAgent\n",
"from llama_index.llms import OpenAI\n",
"\n",
"llm = OpenAI(model=\"gpt-4\")\n",
"tarsier_agent = OpenAIAgent.from_tools(\n",
" [read_page_tool, click_tool, type_text_tool, press_key_tool],\n",
" llm=llm,\n",
" verbose=True,\n",
" system_prompt=\"You are a web interaction agent. Start first by using the read page tool to understand where you currently are. You will be passed in OCR text of a web page where element ids are to the left of elements.\",\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"ExecuteTime": {
"end_time": "2023-11-11T19:11:19.361601Z",
"start_time": "2023-11-11T19:11:19.248818Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"STARTING TURN 1\n",
"---------------\n",
"\n",
"=== Calling Function ===\n",
"Calling function: read_page with args: {}\n",
"Got output: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"0 ] About [ 1 ] Store\n",
" [\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 2 ] Gmail\t\t\t[ 5 ] Sign\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 3 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Images\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 4 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t GOOGLE\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Sign in to Google\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Save your passwords securely with\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAccount\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Google\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t your\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EY\n",
"\t\t\t\t\t\t\t\t [ 6 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t signed out\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Stay\t\t Sign in\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 9 ] [ 10\n",
"\t\t\t\t\t\t\t Q { 8 }\t\t\t\t\t\t\t\t\t ]\n",
"\t\t\t\t\t\t\t\t\t\t\t Search\n",
"\t\t\t\t\t\t\t\t\t\t11 ) Google\n",
"\t\t\t\t\t\t\t\t\t (\t\t\t { 12 } I'm Feeling Lucky\n",
"\t\t\t\t\t\t\t\t\t\t Learn how Google [ 13 ] supports veterans\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 20 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [\n",
"\t\t\t\t\t\t\t works\t\t\t\t\t\t\t\t\t\t\t\t\t 19 ] Terms\n",
" [ 14 ] Advertising 15 ] Business 16 ] How Search\t\t\t\t\t\t\t\t\t\t\t\t 18 ] Privacy [\n",
"\t\t\t [\t\t\t\t\t\t [ 17 ] Our third decade of climate action : join us\t\t\t[\n",
"\t\t\t\t\t [\n",
"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"========================\n",
"\n",
"STARTING TURN 2\n",
"---------------\n",
"\n",
"=== Calling Function ===\n",
"Calling function: type_text with args: {\n",
"\"element_id\": 8,\n",
"\"text\": \"OpenAI Dev day\"\n",
"}\n",
"//textarea[@id=\"APjFqb\"]\n",
"Got output: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"[ 4 ]\n",
" 0 ] About [ 1 ] Store\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 2 ] Gmail [ 3 ]\t\t 5 ] Sign in\n",
" [\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Images\t [\n",
"\t\t\t\t\t[ 6 ] .InXdpd { max - height : 100 % ; max - width : 100 % ; object - fit : contain ; object - position : center bottom ; width : auto ; vertical - align : }\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Sign in to Google\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Save your passwords securely with\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t G\t\t\t Account\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Google\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t your\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsigned out\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Stay\t\t Sign in\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 9 ] X\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t10 ] [ 11 ]\n",
"\t\t\t\t\t\t\t Q { 8 } OpenAl Dev day\t\t\t\t\t\t [\n",
"\t\t\t\t\t\t\t\t\t 12 } Google Search\n",
"\t\t\t\t\t\t\t\t\t {\t\t\t ( 13 ) I'm Feeling Lucky\n",
"\t\t\t\t\t\t\t\t\t\t Learn how Google [ 14 ] supports veterans\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 21 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Terms\n",
"\t\t\t\t\t\t\t works\n",
"\t\t\t 16 ] Business 17 ] How Search\t\t\t\t\t\t\t\t\t\t\t\t\t\t 20 ]\n",
"\t\t\t\t\t\t\t\t\t\t [ 18 ] Our third decade of climate action : join us\t\t\t [ 19 ] Privacy\n",
" [ 15 ] Advertising [\t [\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [\n",
"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"========================\n",
"\n",
"STARTING TURN 3\n",
"---------------\n",
"\n",
"=== Calling Function ===\n",
"Calling function: press_key with args: {\n",
"\"key\": \"Enter\"\n",
"}\n",
"Got output: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"{\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 9 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t [ 6 ] X [ 7 ] + [ 8 ]\t\t\t\t\t [ 10 ]\n",
"\t\t\t\t\t { 5 } OpenAl Dev day\t\t\t\t\t\t\t\t\t\t\t\t\t ⠀⠀⠀ [ 12 ] Sign in\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 11 ]\n",
"\t\t[ 4 ]\n",
"\t\t[ 13 ] News [ 14 ] Images [ 15 ] Videos [ 16 ] Github [ 17 ] Shopping [ 18 ] Agenda [ 19 ] Location [ 20 ] Reddit [ 21 ] [ 23 ] [ 24 ]\t [ 25 ] Tools\n",
"\n",
"\t\t About 29,100,000 results ( 0.42 seconds )\n",
"\t\t\t OpenAl DevDay\n",
"\t\t\t\t https://devday.openai.com [ 28 ]\n",
"\t\t OpenAl DevDay\n",
"\t\t\t\t\t\t\t\t\t\t .\n",
"\t\t OpenAl's first developer conference on November 6 in San Francisco\n",
"\t\t Missing : ( 8 ) | Show results with : [ 29 ] { 8 }\n",
"\t\t\t also ask [ 30 ] :\n",
"\t\t People\n",
"\t\t [ 31 ] Who invested in OpenAI ?\n",
"\t\t [ 32 ] Who is the founder of OpenAI ?\n",
"\t\t [ 33 ] ls OpenAl a nonprofit ?\n",
"\t\t\t\t\t free ?\n",
"\t\t [ 34 ] Can I use OpenAl for\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t [ 35 ] Feedback\n",
"\t\t\t\t [ 36 ]\n",
"\t\t\t Videos\n",
"\t\t\t\t\t [ 38 ] OpenAl Dev Day in Under 1 MINUTE\n",
"\t\t 37 ]\n",
"\t\t [\n",
"\t\t\t\t\t\t\t\tGoda\n",
"\t\t\t\t\t\t YouTube Go\n",
"\t\t\t 1:00\n",
"\t\t\t\t\t\t 4 days ago\n",
"\t\t\t\t\t [ 40 ]\n",
"\t\t\t\t\t\t OpenAl DevDay , Opening Keynote\n",
"\t\t\t OPENAI\n",
"\t\t\t DE\n",
"\t\t [ 39 ]\n",
"\t\t\t O\n",
"\t\t\t\t\t\t YouTube . OpenAl\n",
"\t\t\t 1:15:56\n",
"\t\t\t\t\t\t 5 days\n",
"\t\t\t\t\t\t\t ago\n",
"\t\t\t\t\t\t\t\t\t\t\t\t Changed Everything ....\n",
"\t\t\t\tOPENAI [ 42 ] OpenAl Dev Day Al\tBreakthroughs Just\n",
"\t\t\t\tDEVDAY\n",
"\t\t [ 41 ]\n",
"\t\t\t\t\t\t You Tube Wes Roth\n",
"\t\t\t\t PERCUT\n",
"\t\t\t 37:39\n",
"\t\t\t\t\t\t 4 days\n",
"\t\t\t\t\t\t\t ago\n",
"\t\t [ 43 ]\n",
"\t\t\t\t\t video\n",
"\t\t 17 key moments in this\n",
"\t\t\t PEN AI PANELIS [ 45 ] OpenAl Dev Day Livestream with Generative Al Developer ...\n",
"\t\t [ 44 ]\n",
"\t\t\t\t\t\t YouTube Voicebot +\n",
"\t\t\t\t\t\t\t\t\t Synthedia\n",
"\t\t\t 1:55:28\n",
"\t\t\t\t\t\t 4\n",
"\t\t\t\t\t\t days ago\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t 46 ] Feedback\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t [\n",
"\t\t\t\t\t\t\t\t [ 47 ]\n",
"\t\t\t\t\t\t\t\tView all →\n",
"\t\t\t\t Developer Forum\n",
"\t\t\t OpenAl\n",
"\t\t\t\t https://community.openai.com > openai - dev - day - 2023 ... [ 49 ]\n",
"\t\t\t\t\t 2023 :\t Announcement !\n",
"\t\t OpenAl Dev - Day\n",
"\t\t 6 days ago - Monday , November 6 , 2023 6:00 PM - Keynote Live Stream : Tune in for Sam\n",
"\t\t Altman's keynote as he unveils the newest OpenAl innovations with live ...\n",
"\t\t\t OpenAl Developer Forum\n",
"\t\t\t\t https://community.openai.com > openai - dev - day - 2023 ... [ 51 ] ;\n",
"\t\t OpenAl Dev - Day 2023 : Dev - Day\tDiscussion !\n",
"\t\t 6 days ago - Welcome , everyone ! This topic is your hub for the latest from Dev - Day . ! ... We have\n",
"\t\t a forum member live at Dev - Day sharing updates . Our forum team ...\n",
"\t\t\t Bloomberg\n",
"\t\t B\n",
"\t\t\t\t https://www.bloomberg.com > news newsletters > op ... [ 53 ]\n",
"\t\t OpenAl's Developer Event Sparks\tExcitement and Fear in ...\n",
"\t\t 3 days ago - Reibman , who called OpenAl Dev Day the \" Super Bowl \" moment for Al ...\n",
"\t\t November 8 , 2023 at 6:52 AM PST . Save . Listen . 1:45 . Rockstar Games , a ...\n",
"\t\t\t gHacks Technology News\n",
"\t\t\t\t\t\t [ ]\n",
"\t\t\t https://ghacks.net > Misc 55\n",
"\t\t OpenAl Dev Day : A recap\n",
"\t\t 4 days ago - OpenAl , a leading artificial intelligence research laboratory , held its first OpenAl\n",
"\t\t Dev Day , on November 6 , 2023 , in San Francisco . The event ...\n",
"\t\t\t infoq.com\n",
"\t\t\t\thttps://www.infog.com > news > 2023/11 › openai - an ... [ 57 ] :\n",
"\t\t OpenAl\tAnnounces New Models and APIs at First Developer ...\n",
"\t\t 3 days ago - The new model is more capable , cheaper , and supports a 128K context window . It\n",
"\t\t has knowledge of world events up to April 2023 and can fit the ...\n",
"\t\t [ 58 ] Images for OpenAl Dev day [ 59 ]\n",
"\t\t\t\t\t\t\t\t ⠀\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 60 ]\n",
"\t\t\t bingo\t\tartificial intelligence\t sam altman\n",
"\t\t 61 ]\t [ 62 ]\n",
"\t\t [\t\t\t\t\t\t [ 63 ]\n",
"\t\t\t\t\t\t\t\t\t 69 ]\n",
"\t\t [ 67 ]\t\t [ 68 ]\t\t [\t\t\t [ 70 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 79 ]\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n",
"\t\t ► Video 4 days\t 5 days\t\t 2 days ago\t\t ►Video 4 days ago\n",
"\t\t\t\tago\t\t ago\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t [ 80 ] Feedback\n",
"\t\t\t\t\t\t\t\t [ 81 ]\n",
"\t\t\t\t\t\t\t\tView all →\n",
"\t\t\t\t searches [ 82 ] :\n",
"\t\t Related\n",
"\t\t [ 83 ] Q 8 openai dev day github\t [ 87 ] Q\topenai dev\n",
"\t\t\t\t\t\t\t\t\t\t\t\t day summary\n",
"\t\t\t\t\t\t reddit\t [ 88 ] Q\n",
"\t\t [ 84 ] Q\topenai dev day\t\t\t\t openai dev day youtube\n",
"\t\t\t\t\t\t 2023\n",
"\t\t [ 85 ] Q\topenai dev day\t\t [ 89 ] Q\topenai devday schedule\n",
"\t\t [ 86 ] Q\t\t\t location\t [ 90 ] Q\n",
"\t\t\t\t openai devday\t\t\t\t openai dev day keynote\n",
"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"========================\n",
"\n",
"STARTING TURN 4\n",
"---------------\n",
"\n",
"=== Calling Function ===\n",
"Calling function: click with args: {\n",
"\"element_id\": 39\n",
"}\n",
"//div[@id=\"rso\"]/div[3][contains(concat(\" \", normalize-space(@class), \" \"), \" ULSxyf \")]/div[contains(concat(\" \", normalize-space(@class), \" \"), \" MjjYud \")]/div[contains(concat(\" \", normalize-space(@class), \" \"), \" uVMCKf \")]/div[2][contains(concat(\" \", normalize-space(@class), \" \"), \" e4xoPb \")]/div[2]/div[2][contains(concat(\" \", normalize-space(@class), \" \"), \" RzdJxc \")]/div/div[contains(concat(\" \", normalize-space(@class), \" \"), \" X4T0U \")]/div/div/div[1]/div/div[contains(concat(\" \", normalize-space(@class), \" \"), \" KYaZsb \")]/a[1][contains(concat(\" \", normalize-space(@class), \" \"), \" xMqpbd \") and contains(concat(\" \", normalize-space(@class), \" \"), \" NFjGBc \")]\n",
"Got output: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"[ 1 ]\n",
"\t 0 ]\n",
"\t [\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t [ 2 ] YouTube\n",
"\t ←\n",
"\t\t\t OpenAl\t DevDay ,\t Opening\t Keynote\n",
"\t\t\t YouTube . OpenAl . Nov 6 , 2023\n",
"\t\t\t\t OpenAl DevDay , Opening Keynote\n",
"\n",
"\t\t\t C\n",
"\t\t\t ware\n",
"\t\t\t Devor\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t OPENAI\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t DEVDAY\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t OPENAI\n",
"\t\t\t\t\t\t\t\t\t\t\t\t\t\tDEVDAY\n",
"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n",
"========================\n",
"\n",
"STARTING TURN 5\n",
"---------------\n",
"\n"
]
},
{
"data": {
"text/plain": [
"AgentChatResponse(response='The first video titled \"OpenAI DevDay, Opening Keynote\" has been opened.', sources=[ToolOutput(content=\"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n0 ] About [ 1 ] Store\\n [\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 2 ] Gmail\\t\\t\\t[ 5 ] Sign\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 3 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Images\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 4 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t GOOGLE\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Sign in to Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Save your passwords securely with\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tAccount\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t your\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t EY\\n\\t\\t\\t\\t\\t\\t\\t\\t [ 6 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t signed out\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Stay\\t\\t Sign in\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 9 ] [ 10\\n\\t\\t\\t\\t\\t\\t\\t Q { 8 }\\t\\t\\t\\t\\t\\t\\t\\t\\t ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Search\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t11 ) Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t (\\t\\t\\t { 12 } I'm Feeling Lucky\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Learn how Google [ 13 ] supports veterans\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 20 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t works\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 19 ] Terms\\n [ 14 ] Advertising 15 ] Business 16 ] How Search\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 18 ] Privacy [\\n\\t\\t\\t [\\t\\t\\t\\t\\t\\t [ 17 ] Our third decade of climate action : join us\\t\\t\\t[\\n\\t\\t\\t\\t\\t [\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\", tool_name='read_page', raw_input={'args': (), 'kwargs': {}}, raw_output=\"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n0 ] About [ 1 ] Store\\n [\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 2 ] Gmail\\t\\t\\t[ 5 ] Sign\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 3 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Images\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 4 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t GOOGLE\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Sign in to Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Save your passwords securely with\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tAccount\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t your\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t EY\\n\\t\\t\\t\\t\\t\\t\\t\\t [ 6 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t signed out\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Stay\\t\\t Sign in\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 9 ] [ 10\\n\\t\\t\\t\\t\\t\\t\\t Q { 8 }\\t\\t\\t\\t\\t\\t\\t\\t\\t ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Search\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t11 ) Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t (\\t\\t\\t { 12 } I'm Feeling Lucky\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Learn how Google [ 13 ] supports veterans\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 20 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t works\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 19 ] Terms\\n [ 14 ] Advertising 15 ] Business 16 ] How Search\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 18 ] Privacy [\\n\\t\\t\\t [\\t\\t\\t\\t\\t\\t [ 17 ] Our third decade of climate action : join us\\t\\t\\t[\\n\\t\\t\\t\\t\\t [\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\"), ToolOutput(content=\"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n[ 4 ]\\n 0 ] About [ 1 ] Store\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 2 ] Gmail [ 3 ]\\t\\t 5 ] Sign in\\n [\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Images\\t [\\n\\t\\t\\t\\t\\t[ 6 ] .InXdpd { max - height : 100 % ; max - width : 100 % ; object - fit : contain ; object - position : center bottom ; width : auto ; vertical - align : }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Sign in to Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Save your passwords securely with\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t G\\t\\t\\t Account\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t your\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsigned out\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Stay\\t\\t Sign in\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 9 ] X\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t10 ] [ 11 ]\\n\\t\\t\\t\\t\\t\\t\\t Q { 8 } OpenAl Dev day\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 12 } Google Search\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t {\\t\\t\\t ( 13 ) I'm Feeling Lucky\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Learn how Google [ 14 ] supports veterans\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 21 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Terms\\n\\t\\t\\t\\t\\t\\t\\t works\\n\\t\\t\\t 16 ] Business 17 ] How Search\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 20 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 18 ] Our third decade of climate action : join us\\t\\t\\t [ 19 ] Privacy\\n [ 15 ] Advertising [\\t [\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\", tool_name='type_text', raw_input={'args': (), 'kwargs': {'element_id': 8, 'text': 'OpenAI Dev day'}}, raw_output=\"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n[ 4 ]\\n 0 ] About [ 1 ] Store\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 2 ] Gmail [ 3 ]\\t\\t 5 ] Sign in\\n [\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Images\\t [\\n\\t\\t\\t\\t\\t[ 6 ] .InXdpd { max - height : 100 % ; max - width : 100 % ; object - fit : contain ; object - position : center bottom ; width : auto ; vertical - align : }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Sign in to Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Save your passwords securely with\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t G\\t\\t\\t Account\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Google\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t your\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsigned out\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Stay\\t\\t Sign in\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 9 ] X\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t10 ] [ 11 ]\\n\\t\\t\\t\\t\\t\\t\\t Q { 8 } OpenAl Dev day\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 12 } Google Search\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t {\\t\\t\\t ( 13 ) I'm Feeling Lucky\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Learn how Google [ 14 ] supports veterans\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 21 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Terms\\n\\t\\t\\t\\t\\t\\t\\t works\\n\\t\\t\\t 16 ] Business 17 ] How Search\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 20 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 18 ] Our third decade of climate action : join us\\t\\t\\t [ 19 ] Privacy\\n [ 15 ] Advertising [\\t [\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\"), ToolOutput(content='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 9 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 6 ] X [ 7 ] + [ 8 ]\\t\\t\\t\\t\\t [ 10 ]\\n\\t\\t\\t\\t\\t { 5 } OpenAl Dev day\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t ⠀⠀⠀ [ 12 ] Sign in\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 11 ]\\n\\t\\t[ 4 ]\\n\\t\\t[ 13 ] News [ 14 ] Images [ 15 ] Videos [ 16 ] Github [ 17 ] Shopping [ 18 ] Agenda [ 19 ] Location [ 20 ] Reddit [ 21 ] [ 23 ] [ 24 ]\\t [ 25 ] Tools\\n\\n\\t\\t About 29,100,000 results ( 0.42 seconds )\\n\\t\\t\\t OpenAl DevDay\\n\\t\\t\\t\\t https://devday.openai.com [ 28 ]\\n\\t\\t OpenAl DevDay\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t .\\n\\t\\t OpenAl\\'s first developer conference on November 6 in San Francisco\\n\\t\\t Missing : ( 8 ) | Show results with : [ 29 ] { 8 }\\n\\t\\t\\t also ask [ 30 ] :\\n\\t\\t People\\n\\t\\t [ 31 ] Who invested in OpenAI ?\\n\\t\\t [ 32 ] Who is the founder of OpenAI ?\\n\\t\\t [ 33 ] ls OpenAl a nonprofit ?\\n\\t\\t\\t\\t\\t free ?\\n\\t\\t [ 34 ] Can I use OpenAl for\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 35 ] Feedback\\n\\t\\t\\t\\t [ 36 ]\\n\\t\\t\\t Videos\\n\\t\\t\\t\\t\\t [ 38 ] OpenAl Dev Day in Under 1 MINUTE\\n\\t\\t 37 ]\\n\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\tGoda\\n\\t\\t\\t\\t\\t\\t YouTube Go\\n\\t\\t\\t 1:00\\n\\t\\t\\t\\t\\t\\t 4 days ago\\n\\t\\t\\t\\t\\t [ 40 ]\\n\\t\\t\\t\\t\\t\\t OpenAl DevDay , Opening Keynote\\n\\t\\t\\t OPENAI\\n\\t\\t\\t DE\\n\\t\\t [ 39 ]\\n\\t\\t\\t O\\n\\t\\t\\t\\t\\t\\t YouTube . OpenAl\\n\\t\\t\\t 1:15:56\\n\\t\\t\\t\\t\\t\\t 5 days\\n\\t\\t\\t\\t\\t\\t\\t ago\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Changed Everything ....\\n\\t\\t\\t\\tOPENAI [ 42 ] OpenAl Dev Day Al\\tBreakthroughs Just\\n\\t\\t\\t\\tDEVDAY\\n\\t\\t [ 41 ]\\n\\t\\t\\t\\t\\t\\t You Tube Wes Roth\\n\\t\\t\\t\\t PERCUT\\n\\t\\t\\t 37:39\\n\\t\\t\\t\\t\\t\\t 4 days\\n\\t\\t\\t\\t\\t\\t\\t ago\\n\\t\\t [ 43 ]\\n\\t\\t\\t\\t\\t video\\n\\t\\t 17 key moments in this\\n\\t\\t\\t PEN AI PANELIS [ 45 ] OpenAl Dev Day Livestream with Generative Al Developer ...\\n\\t\\t [ 44 ]\\n\\t\\t\\t\\t\\t\\t YouTube Voicebot +\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t Synthedia\\n\\t\\t\\t 1:55:28\\n\\t\\t\\t\\t\\t\\t 4\\n\\t\\t\\t\\t\\t\\t days ago\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 46 ] Feedback\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t [ 47 ]\\n\\t\\t\\t\\t\\t\\t\\t\\tView all →\\n\\t\\t\\t\\t Developer Forum\\n\\t\\t\\t OpenAl\\n\\t\\t\\t\\t https://community.openai.com > openai - dev - day - 2023 ... [ 49 ]\\n\\t\\t\\t\\t\\t 2023 :\\t Announcement !\\n\\t\\t OpenAl Dev - Day\\n\\t\\t 6 days ago - Monday , November 6 , 2023 6:00 PM - Keynote Live Stream : Tune in for Sam\\n\\t\\t Altman\\'s keynote as he unveils the newest OpenAl innovations with live ...\\n\\t\\t\\t OpenAl Developer Forum\\n\\t\\t\\t\\t https://community.openai.com > openai - dev - day - 2023 ... [ 51 ] ;\\n\\t\\t OpenAl Dev - Day 2023 : Dev - Day\\tDiscussion !\\n\\t\\t 6 days ago - Welcome , everyone ! This topic is your hub for the latest from Dev - Day . ! ... We have\\n\\t\\t a forum member live at Dev - Day sharing updates . Our forum team ...\\n\\t\\t\\t Bloomberg\\n\\t\\t B\\n\\t\\t\\t\\t https://www.bloomberg.com > news newsletters > op ... [ 53 ]\\n\\t\\t OpenAl\\'s Developer Event Sparks\\tExcitement and Fear in ...\\n\\t\\t 3 days ago - Reibman , who called OpenAl Dev Day the \" Super Bowl \" moment for Al ...\\n\\t\\t November 8 , 2023 at 6:52 AM PST . Save . Listen . 1:45 . Rockstar Games , a ...\\n\\t\\t\\t gHacks Technology News\\n\\t\\t\\t\\t\\t\\t [ ]\\n\\t\\t\\t https://ghacks.net > Misc 55\\n\\t\\t OpenAl Dev Day : A recap\\n\\t\\t 4 days ago - OpenAl , a leading artificial intelligence research laboratory , held its first OpenAl\\n\\t\\t Dev Day , on November 6 , 2023 , in San Francisco . The event ...\\n\\t\\t\\t infoq.com\\n\\t\\t\\t\\thttps://www.infog.com > news > 2023/11 › openai - an ... [ 57 ] :\\n\\t\\t OpenAl\\tAnnounces New Models and APIs at First Developer ...\\n\\t\\t 3 days ago - The new model is more capable , cheaper , and supports a 128K context window . It\\n\\t\\t has knowledge of world events up to April 2023 and can fit the ...\\n\\t\\t [ 58 ] Images for OpenAl Dev day [ 59 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t ⠀\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 60 ]\\n\\t\\t\\t bingo\\t\\tartificial intelligence\\t sam altman\\n\\t\\t 61 ]\\t [ 62 ]\\n\\t\\t [\\t\\t\\t\\t\\t\\t [ 63 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 69 ]\\n\\t\\t [ 67 ]\\t\\t [ 68 ]\\t\\t [\\t\\t\\t [ 70 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 79 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t>\\n\\t\\t ► Video 4 days\\t 5 days\\t\\t 2 days ago\\t\\t ►Video 4 days ago\\n\\t\\t\\t\\tago\\t\\t ago\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 80 ] Feedback\\n\\t\\t\\t\\t\\t\\t\\t\\t [ 81 ]\\n\\t\\t\\t\\t\\t\\t\\t\\tView all →\\n\\t\\t\\t\\t searches [ 82 ] :\\n\\t\\t Related\\n\\t\\t [ 83 ] Q 8 openai dev day github\\t [ 87 ] Q\\topenai dev\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t day summary\\n\\t\\t\\t\\t\\t\\t reddit\\t [ 88 ] Q\\n\\t\\t [ 84 ] Q\\topenai dev day\\t\\t\\t\\t openai dev day youtube\\n\\t\\t\\t\\t\\t\\t 2023\\n\\t\\t [ 85 ] Q\\topenai dev day\\t\\t [ 89 ] Q\\topenai devday schedule\\n\\t\\t [ 86 ] Q\\t\\t\\t location\\t [ 90 ] Q\\n\\t\\t\\t\\t openai devday\\t\\t\\t\\t openai dev day keynote\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------', tool_name='press_key', raw_input={'args': (), 'kwargs': {'key': 'Enter'}}, raw_output='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 9 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 6 ] X [ 7 ] + [ 8 ]\\t\\t\\t\\t\\t [ 10 ]\\n\\t\\t\\t\\t\\t { 5 } OpenAl Dev day\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t ⠀⠀⠀ [ 12 ] Sign in\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 11 ]\\n\\t\\t[ 4 ]\\n\\t\\t[ 13 ] News [ 14 ] Images [ 15 ] Videos [ 16 ] Github [ 17 ] Shopping [ 18 ] Agenda [ 19 ] Location [ 20 ] Reddit [ 21 ] [ 23 ] [ 24 ]\\t [ 25 ] Tools\\n\\n\\t\\t About 29,100,000 results ( 0.42 seconds )\\n\\t\\t\\t OpenAl DevDay\\n\\t\\t\\t\\t https://devday.openai.com [ 28 ]\\n\\t\\t OpenAl DevDay\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t .\\n\\t\\t OpenAl\\'s first developer conference on November 6 in San Francisco\\n\\t\\t Missing : ( 8 ) | Show results with : [ 29 ] { 8 }\\n\\t\\t\\t also ask [ 30 ] :\\n\\t\\t People\\n\\t\\t [ 31 ] Who invested in OpenAI ?\\n\\t\\t [ 32 ] Who is the founder of OpenAI ?\\n\\t\\t [ 33 ] ls OpenAl a nonprofit ?\\n\\t\\t\\t\\t\\t free ?\\n\\t\\t [ 34 ] Can I use OpenAl for\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 35 ] Feedback\\n\\t\\t\\t\\t [ 36 ]\\n\\t\\t\\t Videos\\n\\t\\t\\t\\t\\t [ 38 ] OpenAl Dev Day in Under 1 MINUTE\\n\\t\\t 37 ]\\n\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\tGoda\\n\\t\\t\\t\\t\\t\\t YouTube Go\\n\\t\\t\\t 1:00\\n\\t\\t\\t\\t\\t\\t 4 days ago\\n\\t\\t\\t\\t\\t [ 40 ]\\n\\t\\t\\t\\t\\t\\t OpenAl DevDay , Opening Keynote\\n\\t\\t\\t OPENAI\\n\\t\\t\\t DE\\n\\t\\t [ 39 ]\\n\\t\\t\\t O\\n\\t\\t\\t\\t\\t\\t YouTube . OpenAl\\n\\t\\t\\t 1:15:56\\n\\t\\t\\t\\t\\t\\t 5 days\\n\\t\\t\\t\\t\\t\\t\\t ago\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Changed Everything ....\\n\\t\\t\\t\\tOPENAI [ 42 ] OpenAl Dev Day Al\\tBreakthroughs Just\\n\\t\\t\\t\\tDEVDAY\\n\\t\\t [ 41 ]\\n\\t\\t\\t\\t\\t\\t You Tube Wes Roth\\n\\t\\t\\t\\t PERCUT\\n\\t\\t\\t 37:39\\n\\t\\t\\t\\t\\t\\t 4 days\\n\\t\\t\\t\\t\\t\\t\\t ago\\n\\t\\t [ 43 ]\\n\\t\\t\\t\\t\\t video\\n\\t\\t 17 key moments in this\\n\\t\\t\\t PEN AI PANELIS [ 45 ] OpenAl Dev Day Livestream with Generative Al Developer ...\\n\\t\\t [ 44 ]\\n\\t\\t\\t\\t\\t\\t YouTube Voicebot +\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t Synthedia\\n\\t\\t\\t 1:55:28\\n\\t\\t\\t\\t\\t\\t 4\\n\\t\\t\\t\\t\\t\\t days ago\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t 46 ] Feedback\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t [ 47 ]\\n\\t\\t\\t\\t\\t\\t\\t\\tView all →\\n\\t\\t\\t\\t Developer Forum\\n\\t\\t\\t OpenAl\\n\\t\\t\\t\\t https://community.openai.com > openai - dev - day - 2023 ... [ 49 ]\\n\\t\\t\\t\\t\\t 2023 :\\t Announcement !\\n\\t\\t OpenAl Dev - Day\\n\\t\\t 6 days ago - Monday , November 6 , 2023 6:00 PM - Keynote Live Stream : Tune in for Sam\\n\\t\\t Altman\\'s keynote as he unveils the newest OpenAl innovations with live ...\\n\\t\\t\\t OpenAl Developer Forum\\n\\t\\t\\t\\t https://community.openai.com > openai - dev - day - 2023 ... [ 51 ] ;\\n\\t\\t OpenAl Dev - Day 2023 : Dev - Day\\tDiscussion !\\n\\t\\t 6 days ago - Welcome , everyone ! This topic is your hub for the latest from Dev - Day . ! ... We have\\n\\t\\t a forum member live at Dev - Day sharing updates . Our forum team ...\\n\\t\\t\\t Bloomberg\\n\\t\\t B\\n\\t\\t\\t\\t https://www.bloomberg.com > news newsletters > op ... [ 53 ]\\n\\t\\t OpenAl\\'s Developer Event Sparks\\tExcitement and Fear in ...\\n\\t\\t 3 days ago - Reibman , who called OpenAl Dev Day the \" Super Bowl \" moment for Al ...\\n\\t\\t November 8 , 2023 at 6:52 AM PST . Save . Listen . 1:45 . Rockstar Games , a ...\\n\\t\\t\\t gHacks Technology News\\n\\t\\t\\t\\t\\t\\t [ ]\\n\\t\\t\\t https://ghacks.net > Misc 55\\n\\t\\t OpenAl Dev Day : A recap\\n\\t\\t 4 days ago - OpenAl , a leading artificial intelligence research laboratory , held its first OpenAl\\n\\t\\t Dev Day , on November 6 , 2023 , in San Francisco . The event ...\\n\\t\\t\\t infoq.com\\n\\t\\t\\t\\thttps://www.infog.com > news > 2023/11 › openai - an ... [ 57 ] :\\n\\t\\t OpenAl\\tAnnounces New Models and APIs at First Developer ...\\n\\t\\t 3 days ago - The new model is more capable , cheaper , and supports a 128K context window . It\\n\\t\\t has knowledge of world events up to April 2023 and can fit the ...\\n\\t\\t [ 58 ] Images for OpenAl Dev day [ 59 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t ⠀\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 60 ]\\n\\t\\t\\t bingo\\t\\tartificial intelligence\\t sam altman\\n\\t\\t 61 ]\\t [ 62 ]\\n\\t\\t [\\t\\t\\t\\t\\t\\t [ 63 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 69 ]\\n\\t\\t [ 67 ]\\t\\t [ 68 ]\\t\\t [\\t\\t\\t [ 70 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 79 ]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t>\\n\\t\\t ► Video 4 days\\t 5 days\\t\\t 2 days ago\\t\\t ►Video 4 days ago\\n\\t\\t\\t\\tago\\t\\t ago\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 80 ] Feedback\\n\\t\\t\\t\\t\\t\\t\\t\\t [ 81 ]\\n\\t\\t\\t\\t\\t\\t\\t\\tView all →\\n\\t\\t\\t\\t searches [ 82 ] :\\n\\t\\t Related\\n\\t\\t [ 83 ] Q 8 openai dev day github\\t [ 87 ] Q\\topenai dev\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t day summary\\n\\t\\t\\t\\t\\t\\t reddit\\t [ 88 ] Q\\n\\t\\t [ 84 ] Q\\topenai dev day\\t\\t\\t\\t openai dev day youtube\\n\\t\\t\\t\\t\\t\\t 2023\\n\\t\\t [ 85 ] Q\\topenai dev day\\t\\t [ 89 ] Q\\topenai devday schedule\\n\\t\\t [ 86 ] Q\\t\\t\\t location\\t [ 90 ] Q\\n\\t\\t\\t\\t openai devday\\t\\t\\t\\t openai dev day keynote\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'), ToolOutput(content='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n[ 1 ]\\n\\t 0 ]\\n\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 2 ] YouTube\\n\\t ←\\n\\t\\t\\t OpenAl\\t DevDay ,\\t Opening\\t Keynote\\n\\t\\t\\t YouTube . OpenAl . Nov 6 , 2023\\n\\t\\t\\t\\t OpenAl DevDay , Opening Keynote\\n\\n\\t\\t\\t C\\n\\t\\t\\t ware\\n\\t\\t\\t Devor\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t OPENAI\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t DEVDAY\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t OPENAI\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tDEVDAY\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------', tool_name='click', raw_input={'args': (), 'kwargs': {'element_id': 39}}, raw_output='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\\n[ 1 ]\\n\\t 0 ]\\n\\t [\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t [ 2 ] YouTube\\n\\t ←\\n\\t\\t\\t OpenAl\\t DevDay ,\\t Opening\\t Keynote\\n\\t\\t\\t YouTube . OpenAl . Nov 6 , 2023\\n\\t\\t\\t\\t OpenAl DevDay , Opening Keynote\\n\\n\\t\\t\\t C\\n\\t\\t\\t ware\\n\\t\\t\\t Devor\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t OPENAI\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t DEVDAY\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t OPENAI\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tDEVDAY\\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------')], source_nodes=[])"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Try out the agent\n",
"await page.goto(\"https://www.google.com/\")\n",
"await tarsier_agent.achat(\n",
" \"\"\"\n",
" Read the page, search for OpenAI Dev day, go to the first video\n",
" \"\"\"\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}