diff --git a/agent/component/invoke.py b/agent/component/invoke.py index a4aa98191..cb313925b 100644 --- a/agent/component/invoke.py +++ b/agent/component/invoke.py @@ -57,7 +57,7 @@ class Invoke(ComponentBase, ABC): def _invoke(self, **kwargs): args = {} for para in self._param.variables: - if para.get("value") is not None: + if para.get("value"): args[para["key"]] = para["value"] else: args[para["key"]] = self._canvas.get_variable_value(para["ref"]) @@ -139,4 +139,4 @@ class Invoke(ComponentBase, ABC): assert False, self.output() def thoughts(self) -> str: - return "Waiting for the server respond..." \ No newline at end of file + return "Waiting for the server respond..."