Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: error parsing object type parameters for code node (#22230)
Novice1d54ffcf89b7
diff --git a/api/core/helper/code_executor/template_transformer.py b/api/core/helper/code_executor/template_transformer.pyindex 84f212a9c1d..a8e9f41a84c 100644--- a/api/core/helper/code_executor/template_transformer.py+++ b/api/core/helper/code_executor/template_transformer.py@@ -5,6 +5,8 @@ from base64 import b64encodefrom collections.abc import Mappingfrom typing import Any+from core.variables.utils import SegmentJSONEncoder+class TemplateTransformer(ABC):_code_placeholder: str = "{{code}}"@@ -95,7 +97,7 @@ class TemplateTransformer(ABC):@classmethoddef serialize_inputs(cls, inputs: Mapping[str, Any]) -> str:- inputs_json_str = json.dumps(inputs, ensure_ascii=False).encode()+ inputs_json_str = json.dumps(inputs, ensure_ascii=False, cls=SegmentJSONEncoder).encode()input_base64_encoded = b64encode(inputs_json_str).decode("utf-8")return input_base64_encoded