docs/source/en/reference/python_executors.md
Python executors are responsible for running the code generated by code agents in a controlled environment. Since agents dynamically generate and execute Python code to accomplish tasks, choosing the right executor is critical for both functionality and security.
To learn more about code execution and its risks, make sure to read the Secure code execution
tutorial. This reference contains the API docs for the underlying classes: the base PythonExecutor interface and all
available executor implementations.
[[autodoc]] smolagents.local_python_executor.PythonExecutor
[[autodoc]] smolagents.local_python_executor.LocalPythonExecutor
[[autodoc]] smolagents.remote_executors.RemotePythonExecutor
[[autodoc]] smolagents.remote_executors.BlaxelExecutor
[[autodoc]] smolagents.remote_executors.E2BExecutor
[[autodoc]] smolagents.remote_executors.ModalExecutor
[[autodoc]] smolagents.remote_executors.DockerExecutor
[[autodoc]] smolagents.remote_executors.WasmExecutor