File tree 1 file changed +13
-1
lines changed
notebooks/llm-agent-react
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"cells" : [
3
3
{
4
+ "attachments" : {},
4
5
"cell_type" : " markdown" ,
5
6
"id" : " 5fc61857-629d-476c-84fc-927a63a12f0f" ,
6
7
"metadata" : {},
41
42
]
42
43
},
43
44
{
45
+ "attachments" : {},
44
46
"cell_type" : " markdown" ,
45
47
"id" : " d6e66ddf" ,
46
48
"metadata" : {},
86
88
]
87
89
},
88
90
{
91
+ "attachments" : {},
89
92
"cell_type" : " markdown" ,
90
93
"id" : " e04a1a2b-873b-4c05-a9fc-9a762ddeffe7" ,
91
94
"metadata" : {},
162
165
]
163
166
},
164
167
{
168
+ "attachments" : {},
165
169
"cell_type" : " markdown" ,
166
170
"id" : " 30dcdf3a" ,
167
171
"metadata" : {},
209
213
]
210
214
},
211
215
{
216
+ "attachments" : {},
212
217
"cell_type" : " markdown" ,
213
218
"id" : " 0e47dddf" ,
214
219
"metadata" : {},
274
279
]
275
280
},
276
281
{
282
+ "attachments" : {},
277
283
"cell_type" : " markdown" ,
278
284
"id" : " 0c2bff03" ,
279
285
"metadata" : {},
341
347
]
342
348
},
343
349
{
350
+ "attachments" : {},
344
351
"cell_type" : " markdown" ,
345
352
"id" : " 05fe6e0c" ,
346
353
"metadata" : {},
390
397
]
391
398
},
392
399
{
400
+ "attachments" : {},
393
401
"cell_type" : " markdown" ,
394
402
"id" : " 0548431e" ,
395
403
"metadata" : {},
444
452
]
445
453
},
446
454
{
455
+ "attachments" : {},
447
456
"cell_type" : " markdown" ,
448
457
"id" : " dbed3668" ,
449
458
"metadata" : {},
480
489
]
481
490
},
482
491
{
492
+ "attachments" : {},
483
493
"cell_type" : " markdown" ,
484
494
"id" : " 23b1673b" ,
485
495
"metadata" : {},
529
539
]
530
540
},
531
541
{
542
+ "attachments" : {},
532
543
"cell_type" : " markdown" ,
533
544
"id" : " 975b72e3" ,
534
545
"metadata" : {},
562
573
" return str(ret)\n " ,
563
574
" elif tool_name == \" image_gen\" :\n " ,
564
575
" import urllib.parse\n " ,
565
- " \n " ,
576
+ " tool_args = tool_args.replace( \" ( \" , \"\" ).replace( \" ) \" , \"\" ) \n " ,
566
577
" prompt = json5.loads(tool_args)[\" prompt\" ]\n " ,
567
578
" prompt = urllib.parse.quote(prompt)\n " ,
568
579
" return json.dumps(\n " ,
598
609
]
599
610
},
600
611
{
612
+ "attachments" : {},
601
613
"cell_type" : " markdown" ,
602
614
"id" : " 745969ca" ,
603
615
"metadata" : {},
You can’t perform that action at this time.
0 commit comments