AgentRun is a Python library that makes it easy to run Python code safely from large language models (LLMs) with a single line of code. Built on top of the Docker Python SDK and RestrictedPython, it ...
The code sandbox in code_sandbox.py uses AST analysis to block access to private attributes like globals and class. However, this check only catches direct attribute access in the AST. Format strings ...