Skip to content

A programming framework for agentic AI

Update quickstart to reference docker requirement (#497)

Jack Gerrits4efeb640e3cb
diff --git a/python/packages/autogen-core/docs/src/getting-started/quickstart.ipynb b/python/packages/autogen-core/docs/src/getting-started/quickstart.ipynb
index 081220032..5e7b545b2 100644
--- a/python/packages/autogen-core/docs/src/getting-started/quickstart.ipynb
+++ b/python/packages/autogen-core/docs/src/getting-started/quickstart.ipynb
@@ -14,7 +14,11 @@
"We create two agent classes: `Assistant` and `Executor`. The `Assistant`\n",
"agent writes code and the `Executor` agent executes the code.\n",
"We also create a `Message` data class, which defines the messages that can are passed between\n",
- "the agents."
+ "the agents.\n",
+ "\n",
+ "```{attention}\n",
+ "Code generated in this example is run within a [Docker](https://www.docker.com/) container. Please ensure Docker is [installed](https://docs.docker.com/get-started/get-docker/) and running prior to running the example. Local code execution is available ({py:class}`~autogen_core.components.code_executor.LocalCommandLineCodeExecutor`) but is not recommended due to the risk of running LLM generated code in your local environment.\n",
+ "```"
]
},
{
diff --git a/python/packages/autogen-core/src/autogen_core/components/code_executor/_impl/local_commandline_code_executor.py b/python/packages/autogen-core/src/autogen_core/components/code_executor/_impl/local_commandline_code_executor.py
index acbbd4e0e..4231439b1 100644
--- a/python/packages/autogen-core/src/autogen_core/components/code_executor/_impl/local_commandline_code_executor.py
+++ b/python/packages/autogen-core/src/autogen_core/components/code_executor/_impl/local_commandline_code_executor.py
@@ -59,10 +59,12 @@ $functions"""
] = [],
functions_module: str = "functions",
):
- """(Experimental) A code executor class that executes code through a local command line
+ """A code executor class that executes code through a local command line
environment.
- **This will execute LLM generated code on the local machine.**
+ .. danger::
+
+ This will execute code on the local machine. If being used with LLM generated code, caution should be used.
Each code block is saved as a file and executed in a separate process in
the working directory, and a unique file is generated and saved in the