Skip to content

Commit 486b283

Browse files
committed
fix python lint in dify plugin
Signed-off-by: Zhou Zihang <z@mcac.cc>
1 parent ca3f59b commit 486b283

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

integrations/dify-plugin/tools/agentcube-code-interpreter.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,18 @@ def _invoke(self, tool_parameters: dict[str, Any]) -> Generator[ToolInvokeMessag
2626
yield self.create_json_message(result)
2727

2828

29-
def execute(self, router_url=None, workload_manager_url=None, language="python",
30-
code_interpreter_id=None, session_id=None, code=None,
31-
command=None, session_reuse=False, **kwargs):
29+
def execute(
30+
self,
31+
router_url=None,
32+
workload_manager_url=None,
33+
language="python",
34+
code_interpreter_id=None,
35+
session_id=None,
36+
code=None,
37+
command=None,
38+
session_reuse=False,
39+
**kwargs
40+
):
3241
# Validate required URLs
3342
if not router_url or not workload_manager_url:
3443
return {"status": "error", "reason": "router_url and workload_manager_url are required"}
@@ -80,4 +89,3 @@ def execute(self, router_url=None, workload_manager_url=None, language="python",
8089
}
8190

8291
return result
83-

0 commit comments

Comments
 (0)