Skip to content

A programming framework for agentic AI

docs: Add a helpful comment to swarm.ipynb (#5145)

Sungjun.Kim141247f6d739
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynb
index f054b35cb..41ba103b5 100644
--- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynb
+++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynb
@@ -263,6 +263,7 @@
" last_message = task_result.messages[-1]\n",
"\n",
"\n",
+ "# Use asyncio.run(...) if you are running this in a script.\n",
"await run_team_stream()"
]
},