Files
llm-functions/tools/execute_py_code.py
2024-08-03 03:16:29 +00:00

7 lines
161 B
Python

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