feat: add specInsight func / language params in data visualization tool
This commit is contained in:
@@ -21,11 +21,12 @@ class NormalPythonExecute(PythonExecute):
|
||||
"code_type": {
|
||||
"description": "code type",
|
||||
"type": "string",
|
||||
"default": "process",
|
||||
"enum": ["process", "report", "others"],
|
||||
},
|
||||
},
|
||||
"required": ["code"],
|
||||
}
|
||||
|
||||
async def execute(self, code: str, code_type: str, timeout=5):
|
||||
async def execute(self, code: str, code_type: str | None = None, timeout=5):
|
||||
return await super().execute(code, timeout)
|
||||
|
||||
Reference in New Issue
Block a user