Skip to content

Commit ee08696

Browse files
committed
Fix notebooks 1
1 parent 239b565 commit ee08696

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

recipes/quickstart/agents/Agents_101/Tool_Calling_101.ipynb

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
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 see the respective notebook, this one covers 3.1 models\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",
10+
"\n",
11+
"We are briefly introduction the `3.2` models at the end. \n",
12+
"\n",
13+
"Note: The new vision models behave same as `3.1` models when you are talking to the models without an image\n",
1014
"\n",
1115
"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",
1216
"\n",
@@ -127,10 +131,6 @@
127131
" \n",
128132
" chat_history.append({\"role\": \"user\", \"content\": user_input})\n",
129133
" \n",
130-
" #print(chat_history)\n",
131-
" \n",
132-
" #print(\"User: \", user_input)\n",
133-
" \n",
134134
" response = client.chat.completions.create(model=\"llama-3.1-70b-versatile\",\n",
135135
" messages=chat_history,\n",
136136
" max_tokens=max_tokens,\n",
@@ -653,7 +653,7 @@
653653
"cell_type": "markdown",
654654
"metadata": {},
655655
"source": [
656-
"### 3.2 Models Prompt Format"
656+
"### 3.2 Models Custom Tool Prompt Format"
657657
]
658658
},
659659
{
@@ -735,10 +735,6 @@
735735
" \n",
736736
" chat_history.append({\"role\": \"user\", \"content\": user_input})\n",
737737
" \n",
738-
" #print(chat_history)\n",
739-
" \n",
740-
" #print(\"User: \", user_input)\n",
741-
" \n",
742738
" response = client.chat.completions.create(model=\"llama-3.2-3b-preview\",\n",
743739
" messages=chat_history,\n",
744740
" max_tokens=max_tokens,\n",
@@ -755,6 +751,18 @@
755751
" return response.choices[0].message.content"
756752
]
757753
},
754+
{
755+
"cell_type": "markdown",
756+
"metadata": {},
757+
"source": [
758+
"Note: We are assuming a structure for dataset here:\n",
759+
"\n",
760+
"- Name\n",
761+
"- Email\n",
762+
"- Age \n",
763+
"- Color request"
764+
]
765+
},
758766
{
759767
"cell_type": "code",
760768
"execution_count": 6,

0 commit comments

Comments
 (0)