refactor: refactor code by pre-commit

This commit is contained in:
ZJU_czx
2025-04-22 18:54:22 +08:00
parent 3928a5dc8b
commit f162d629a6
9 changed files with 22 additions and 29 deletions
@@ -1,14 +1,12 @@
from app.tool.python_execute import PythonExecute
from app.config import config
from app.tool.python_execute import PythonExecute
class NormalPythonExecute(PythonExecute):
"""A tool for executing Python code with timeout and safety restrictions."""
name: str = "python_execute"
description: str = (
"""Execute Python code for in-depth data analysis / data report(task conclusion) / other normal task without direct visualization."""
)
description: str = """Execute Python code for in-depth data analysis / data report(task conclusion) / other normal task without direct visualization."""
parameters: dict = {
"type": "object",
"properties": {