فهرست منبع

Fixed comments

Sanyam Bhutani 6 ماه پیش
والد
کامیت
9dce2223d1
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 3 3
      recipes/quickstart/agents/Agents_101/Tool_Calling_101.ipynb
  2. 1 0
      recipes/quickstart/agents/README.md

+ 3 - 3
recipes/quickstart/agents/Agents_101/Tool_Calling_101.ipynb

@@ -6,7 +6,7 @@
    "source": [
     "# Tool Calling 101:\n",
     "\n",
-    "Note: If you are looking for `3.2` Featherlight Model (1B and 3B) instructions, please scroll to the bottom\n",
+    "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",
     "\n",
     "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",
     "\n",
@@ -544,10 +544,10 @@
     "fn_name = re.search(r'<\\|python_tag\\|>(\\w+)\\.', output).group(1)\n",
     "\n",
     "# Extract the method\n",
-    "fn_call_method = re.search(r'\\.(\\w+)\\(', string).group(1)\n",
+    "fn_call_method = re.search(r'\\.(\\w+)\\(', output).group(1)\n",
     "\n",
     "# Extract the arguments\n",
-    "fn_call_args = re.search(r'=\\s*([^)]+)', string).group(1)\n",
+    "fn_call_args = re.search(r'=\\s*([^)]+)', output).group(1)\n",
     "\n",
     "print(f\"Function name: {fn_name}\")\n",
     "print(f\"Method: {fn_call_method}\")\n",

+ 1 - 0
recipes/quickstart/agents/README.md

@@ -0,0 +1 @@
+## Agents and Tool Calling