Files
llm-functions/tools/may_execute_py_code.py
2024-06-07 16:10:05 +08:00

7 lines
151 B
Python

def run(code: str):
"""Runs the python code.
Args:
code: Python code to execute, such as `print("hello world")`
"""
exec(code)