Skip to content

Commit 9dce222

Browse files
committed
Fixed comments
1 parent c77394b commit 9dce222

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

recipes/quickstart/agents/Agents_101/Tool_Calling_101.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Tool Calling 101:\n",
88
"\n",
9-
"Note: If you are looking for `3.2` Featherlight Model (1B and 3B) instructions, please scroll to the bottom\n",
9+
"Note: If you are looking for `3.2` Featherlight Model (1B and 3B) instructions, please see the respective notebook, this one covers 3.1 models\n",
1010
"\n",
1111
"This is part (1/2) in the tool calling series, this notebook will cover the basics of what tool calling is and how to perform it with `Llama 3.1 models`\n",
1212
"\n",
@@ -544,10 +544,10 @@
544544
"fn_name = re.search(r'<\\|python_tag\\|>(\\w+)\\.', output).group(1)\n",
545545
"\n",
546546
"# Extract the method\n",
547-
"fn_call_method = re.search(r'\\.(\\w+)\\(', string).group(1)\n",
547+
"fn_call_method = re.search(r'\\.(\\w+)\\(', output).group(1)\n",
548548
"\n",
549549
"# Extract the arguments\n",
550-
"fn_call_args = re.search(r'=\\s*([^)]+)', string).group(1)\n",
550+
"fn_call_args = re.search(r'=\\s*([^)]+)', output).group(1)\n",
551551
"\n",
552552
"print(f\"Function name: {fn_name}\")\n",
553553
"print(f\"Method: {fn_call_method}\")\n",

recipes/quickstart/agents/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Agents and Tool Calling

0 commit comments

Comments
 (0)