diff --git a/api/core/workflow/nodes/answer/entities.py b/api/core/workflow/nodes/answer/entities.py index 530327cdf5..ea84ffda59 100644 --- a/api/core/workflow/nodes/answer/entities.py +++ b/api/core/workflow/nodes/answer/entities.py @@ -13,7 +13,7 @@ class AnswerNodeData(BaseNodeData): """ answer: str = Field(..., description="answer template string") - outputs: list[VariableSelector] + outputs: list[VariableSelector] = Field(default_factory=list, description="list of variable selectors") class GenerateRouteChunk(BaseModel):