Files
llm-functions/tools/execute_py_code.py
2024-07-03 16:18:32 +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)