Skip to content

Improve swarm.ipynb #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions notebooks/swarm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"source": [
"## Starting simple: building an Assistant\n",
"\n",
"The first step toward building an Agent is creating an Assistant: think of it of Chat Language Model + a system prompt.\n",
"The first step toward building an Agent is creating an Assistant: think of it as a Chat Language Model + a system prompt.\n",
"\n",
"We can implement this as a lightweight dataclass with three parameters:\n",
"- name\n",
Expand Down Expand Up @@ -604,12 +604,12 @@
"\n",
"\n",
"def transfer_to_sales_agent():\n",
" \"\"\"User for anything sales or buying related.\"\"\"\n",
" \"\"\"Use for anything sales or buying related.\"\"\"\n",
" return HANDOFF_TEMPLATE.format(agent_name=\"Sales Agent\")\n",
"\n",
"\n",
"def transfer_to_issues_and_repairs():\n",
" \"\"\"User for issues, repairs, or refunds.\"\"\"\n",
" \"\"\"Use for issues, repairs, or refunds.\"\"\"\n",
" return HANDOFF_TEMPLATE.format(agent_name=\"Issues and Repairs Agent\")\n",
"\n",
"\n",
Expand Down Expand Up @@ -1010,7 +1010,7 @@
"User: yes\n",
"\n",
"Issues and Repairs Agent: I see. Since our standard solution didn't work, let's try something else. Have you checked if the keyboard's \"Monday Mode\" switch is accidentally activated?\n",
"User: aah. what it is? are you mading it up?\n",
"User: aah. what it is? are you making it up?\n",
"\n",
"Issues and Repairs Agent: I apologize for the confusion. You're right to question that - there's no such thing as a \"Monday Mode\" switch. I shouldn't have suggested a made-up feature. Let's get back to the real issue. Since the ACME Vowel Vitalizer didn't work, would you like me to process a refund for your SuperKeyboard 5000?\n",
"User: yes pleas\n",
Expand Down