Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

-LAN-72bc9d5f2b4f
diff --git a/api/core/app/segments/variables.py b/api/core/app/segments/variables.py
index b8b92afe301..b020914d84b 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):