feat: extend support modes in variable aggregation node to include knowledge workflows

This commit is contained in:
CaptainB 2025-11-24 14:34:21 +08:00
parent cd28a7fd4a
commit 1d60741b4f

View File

@ -28,7 +28,7 @@ class VariableAggregationNodeSerializer(serializers.Serializer):
class IVariableAggregation(INode):
type = 'variable-aggregation-node'
support = [WorkflowMode.APPLICATION, WorkflowMode.APPLICATION_LOOP]
support = [WorkflowMode.APPLICATION, WorkflowMode.APPLICATION_LOOP, WorkflowMode.KNOWLEDGE, WorkflowMode.KNOWLEDGE_LOOP]
def get_node_params_serializer_class(self) -> Type[serializers.Serializer]:
return VariableAggregationNodeSerializer