Files
llm-functions/tools/execute_py_code.py

7 lines
158 B
Python

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