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.

fix(api/services/app_dsl_service.py): Add conversation variables. (#7304)

-LAN-2d89b7d0a986
diff --git a/api/services/app_dsl_service.py b/api/services/app_dsl_service.py
index 838585c575f..bfb160b3e47 100644
--- a/api/services/app_dsl_service.py
+++ b/api/services/app_dsl_service.py
@@ -285,6 +285,8 @@ class AppDslService:
# sync draft workflow
environment_variables_list = workflow_data.get('environment_variables') or []
environment_variables = [factory.build_variable_from_mapping(obj) for obj in environment_variables_list]
+ conversation_variables_list = workflow_data.get('conversation_variables') or []
+ conversation_variables = [factory.build_variable_from_mapping(obj) for obj in conversation_variables_list]
draft_workflow = workflow_service.sync_draft_workflow(
app_model=app_model,
graph=workflow_data.get('graph', {}),
@@ -292,6 +294,7 @@ class AppDslService:
unique_hash=unique_hash,
account=account,
environment_variables=environment_variables,
+ conversation_variables=conversation_variables,
)
return draft_workflow