From 72bc9d5f2b4ffeef3b16e5cda45f04fca9e4ef12 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Wed, 24 Jul 2024 19:35:22 +0800 Subject: [PATCH] feat(api/core/app/segments/variables.py): Support description in Variable. (#6636) Signed-off-by: -LAN- --- api/core/app/segments/variables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/app/segments/variables.py b/api/core/app/segments/variables.py index b8b92afe30..b020914d84 100644 --- a/api/core/app/segments/variables.py +++ b/api/core/app/segments/variables.py @@ -20,6 +20,7 @@ class Variable(Segment): description="Unique identity for variable. It's only used by environment variables now.", ) name: str + description: str = Field(default='', description='Description of the variable.') class StringVariable(StringSegment, Variable):