Skip to content

Commit

Permalink
update import
Browse files Browse the repository at this point in the history
  • Loading branch information
yiranwu0 committed Nov 20, 2024
1 parent b2615b3 commit 2df1b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/blog/2024-11-17-Swarm/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ history, context, last_agent = initiate_swarm_chat(
This example of managing refunds demonstrates the context handling, swarm and agent-level conditional and after work hand offs, and the human-in-the-loop feature.

```python
from autogen.agentchat.contrib.swarm_agent import initiate_swarm_chat, SwarmAgent, SwarmResult, ON_CONDITION, AFTER_WORK, AfterWorkOption
from autogen import initiate_swarm_chat, SwarmAgent, SwarmResult, ON_CONDITION, AFTER_WORK, AfterWorkOption
from autogen import UserProxyAgent
import os

Expand Down
2 changes: 1 addition & 1 deletion website/docs/topics/swarm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"source": [
"import random\n",
"\n",
"from autogen.agentchat.contrib.swarm_agent import (\n",
"from autogen import (\n",
" AFTER_WORK,\n",
" ON_CONDITION,\n",
" AfterWorkOption,\n",
Expand Down

0 comments on commit 2df1b5b

Please sign in to comment.