Skip to content

Commit f392897

Browse files
authored
avoid unmatched brackets in llm agent notebook (openvinotoolkit#2463)
1 parent e952699 commit f392897

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

notebooks/llm-agent-react/llm-agent-react.ipynb

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"id": "5fc61857-629d-476c-84fc-927a63a12f0f",
67
"metadata": {},
@@ -41,6 +42,7 @@
4142
]
4243
},
4344
{
45+
"attachments": {},
4446
"cell_type": "markdown",
4547
"id": "d6e66ddf",
4648
"metadata": {},
@@ -86,6 +88,7 @@
8688
]
8789
},
8890
{
91+
"attachments": {},
8992
"cell_type": "markdown",
9093
"id": "e04a1a2b-873b-4c05-a9fc-9a762ddeffe7",
9194
"metadata": {},
@@ -162,6 +165,7 @@
162165
]
163166
},
164167
{
168+
"attachments": {},
165169
"cell_type": "markdown",
166170
"id": "30dcdf3a",
167171
"metadata": {},
@@ -209,6 +213,7 @@
209213
]
210214
},
211215
{
216+
"attachments": {},
212217
"cell_type": "markdown",
213218
"id": "0e47dddf",
214219
"metadata": {},
@@ -274,6 +279,7 @@
274279
]
275280
},
276281
{
282+
"attachments": {},
277283
"cell_type": "markdown",
278284
"id": "0c2bff03",
279285
"metadata": {},
@@ -341,6 +347,7 @@
341347
]
342348
},
343349
{
350+
"attachments": {},
344351
"cell_type": "markdown",
345352
"id": "05fe6e0c",
346353
"metadata": {},
@@ -390,6 +397,7 @@
390397
]
391398
},
392399
{
400+
"attachments": {},
393401
"cell_type": "markdown",
394402
"id": "0548431e",
395403
"metadata": {},
@@ -444,6 +452,7 @@
444452
]
445453
},
446454
{
455+
"attachments": {},
447456
"cell_type": "markdown",
448457
"id": "dbed3668",
449458
"metadata": {},
@@ -480,6 +489,7 @@
480489
]
481490
},
482491
{
492+
"attachments": {},
483493
"cell_type": "markdown",
484494
"id": "23b1673b",
485495
"metadata": {},
@@ -529,6 +539,7 @@
529539
]
530540
},
531541
{
542+
"attachments": {},
532543
"cell_type": "markdown",
533544
"id": "975b72e3",
534545
"metadata": {},
@@ -562,7 +573,7 @@
562573
" return str(ret)\n",
563574
" elif tool_name == \"image_gen\":\n",
564575
" import urllib.parse\n",
565-
"\n",
576+
" tool_args = tool_args.replace(\"(\", \"\").replace(\")\", \"\")\n",
566577
" prompt = json5.loads(tool_args)[\"prompt\"]\n",
567578
" prompt = urllib.parse.quote(prompt)\n",
568579
" return json.dumps(\n",
@@ -598,6 +609,7 @@
598609
]
599610
},
600611
{
612+
"attachments": {},
601613
"cell_type": "markdown",
602614
"id": "745969ca",
603615
"metadata": {},

0 commit comments

Comments
 (0)