Skip to content

Commit

Permalink
Refactor agent tutorial: update function signatures and remove unused…
Browse files Browse the repository at this point in the history
… markdown cells
  • Loading branch information
ekzhu committed Nov 9, 2024
1 parent a3fb010 commit 86e80eb
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -214,7 +214,7 @@
"from autogen_ext.code_executors import DockerCommandLineCodeExecutor\n",
"\n",
"\n",
"async def run_code_executor_agent():\n",
"async def run_code_executor_agent() -> None:\n",
" # Create a code executor agent that uses a Docker container to execute code.\n",
" code_executor = DockerCommandLineCodeExecutor(work_dir=\"coding\")\n",
" await code_executor.start()\n",
Expand Down Expand Up @@ -277,7 +277,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -320,7 +320,7 @@
" pass\n",
"\n",
"\n",
"async def run_user_proxy_agent():\n",
"async def run_user_proxy_agent() -> None:\n",
" user_proxy_agent = UserProxyAgent(name=\"user_proxy_agent\")\n",
" user_proxy_agent_result = await user_proxy_agent.run(task=\"What's your thought?\")\n",
" print(user_proxy_agent_result.messages[-1])\n",
Expand All @@ -329,14 +329,6 @@
"# Use asyncio.run(run_user_proxy_agent()) when running in a script.\n",
"await run_user_proxy_agent()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In the following sections, we will show how to use the `UserProxyAgent`\n",
"to build human-in-the-loop scenarios."
]
}
],
"metadata": {
Expand Down

0 comments on commit 86e80eb

Please sign in to comment.