Skip to content

Commit

Permalink
bring back tool calling agent
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Nov 15, 2024
1 parent ce70375 commit c3d8afe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/swarm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@
"outputs": [],
"source": [
"@dataclass\n",
"class SwarmAgent:\n",
" name: str = \"SwarmAgent\"\n",
"class ToolCallingAgent:\n",
" name: str = \"ToolCallingAgent\"\n",
" llm: object = OpenAIChatGenerator()\n",
" instructions: str = \"You are a helpful Agent\"\n",
" functions: list[Callable] = field(default_factory=list)\n",
Expand Down Expand Up @@ -291,7 +291,7 @@
" return f\"report: refund succeeded for {item_name} - refund id: {random.randint(0,10000)}\"\n",
"\n",
"\n",
"refund_agent = SwarmAgent(\n",
"refund_agent = ToolCallingAgent(\n",
" name=\"Refund Agent\",\n",
" instructions=(\n",
" \"You are a refund agent. \"\n",
Expand Down

0 comments on commit c3d8afe

Please sign in to comment.