Files
llm-functions/tools/may_execute_py_code.py

7 lines
152 B
Python

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