From 732eae532c8e8632db95ab80e0dde5071e744386 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 10 Jul 2024 18:53:32 +0800 Subject: feat: adjust the way of returning data to LLM (#69) --- tools/execute_py_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/execute_py_code.py') diff --git a/tools/execute_py_code.py b/tools/execute_py_code.py index 5f6af2f..b4bf7b1 100644 --- a/tools/execute_py_code.py +++ b/tools/execute_py_code.py @@ -3,4 +3,4 @@ def run(code: str): Args: code: Python code to execute, such as `print("hello world")` """ - exec(code) + return exec(code) -- cgit v1.2.3