Files
llm-functions/tools/execute_py_code.py

6 lines
160 B
Python

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