From e9090205d59a81ab2f3e5c72a578cd5d6bfb279e Mon Sep 17 00:00:00 2001 From: hjlarry Date: Tue, 3 Jun 2025 16:57:40 +0800 Subject: [PATCH] use core.variables.types.SegmentType --- api/core/workflow/nodes/variable_aggregator/entities.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api/core/workflow/nodes/variable_aggregator/entities.py b/api/core/workflow/nodes/variable_aggregator/entities.py index 3484a819e7..d33c3859e9 100644 --- a/api/core/workflow/nodes/variable_aggregator/entities.py +++ b/api/core/workflow/nodes/variable_aggregator/entities.py @@ -1,8 +1,9 @@ -from typing import Literal, Optional +from typing import Optional from pydantic import BaseModel from core.workflow.nodes.base import BaseNodeData +from core.variables.types import SegmentType class AdvancedSettings(BaseModel): @@ -17,9 +18,7 @@ class AdvancedSettings(BaseModel): Group. """ - output_type: Literal[ - "string", "number", "object", "file", "array[string]", "array[number]", "array[object]", "array[file]" - ] + output_type: SegmentType variables: list[list[str]] group_name: str