浏览代码

feat(api/core/app/segments/variables.py): Support description in Variable. (#6636)

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- 9 月之前
父节点
当前提交
72bc9d5f2b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/core/app/segments/variables.py

+ 1 - 0
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.",
         description="Unique identity for variable. It's only used by environment variables now.",
     )
     )
     name: str
     name: str
+    description: str = Field(default='', description='Description of the variable.')
 
 
 
 
 class StringVariable(StringSegment, Variable):
 class StringVariable(StringSegment, Variable):