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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: avoid trial workflow schema model collision (#36061)
非法操作4fd4615c567d
diff --git a/api/controllers/console/explore/trial.py b/api/controllers/console/explore/trial.pyindex 025c517d20f..26b48ec599a 100644--- a/api/controllers/console/explore/trial.py+++ b/api/controllers/console/explore/trial.py@@ -106,7 +106,7 @@ app_detail_fields_with_site_copy["tags"] = fields.List(fields.Nested(tag_model))app_detail_fields_with_site_copy["site"] = fields.Nested(site_model)app_detail_with_site_model = get_or_create_model("TrialAppDetailWithSite", app_detail_fields_with_site_copy)-simple_account_model = get_or_create_model("SimpleAccount", simple_account_fields)+simple_account_model = get_or_create_model("TrialSimpleAccount", simple_account_fields)conversation_variable_model = get_or_create_model("TrialConversationVariable", conversation_variable_fields)pipeline_variable_model = get_or_create_model("TrialPipelineVariable", pipeline_variable_fields)diff --git a/api/openapi/markdown/console-swagger.md b/api/openapi/markdown/console-swagger.mdindex f3c188fc06c..e56d5f6fe5a 100644--- a/api/openapi/markdown/console-swagger.md+++ b/api/openapi/markdown/console-swagger.md@@ -13786,6 +13786,14 @@ Tag type| unit | string | | No || variable | string | | No |+#### TrialSimpleAccount++| Name | Type | Description | Required |+| ---- | ---- | ----------- | -------- |+| email | string | | No |+| id | string | | No |+| name | string | | No |+#### TrialSite| Name | Type | Description | Required |@@ -13829,7 +13837,7 @@ Tag type| ---- | ---- | ----------- | -------- || conversation_variables | [ [TrialConversationVariable](#trialconversationvariable) ] | | No || created_at | object | | No |-| created_by | [SimpleAccount](#simpleaccount) | | No |+| created_by | [TrialSimpleAccount](#trialsimpleaccount) | | No || environment_variables | [ object ] | | No || features | object | | No || graph | object | | No |@@ -13840,7 +13848,7 @@ Tag type| rag_pipeline_variables | [ [TrialPipelineVariable](#trialpipelinevariable) ] | | No || tool_published | boolean | | No || updated_at | object | | No |-| updated_by | [SimpleAccount](#simpleaccount) | | No |+| updated_by | [TrialSimpleAccount](#trialsimpleaccount) | | No || version | string | | No |#### TrialWorkflowPartialdiff --git a/api/tests/unit_tests/controllers/console/explore/test_trial.py b/api/tests/unit_tests/controllers/console/explore/test_trial.pyindex 14f00e6295a..82a063307b9 100644--- a/api/tests/unit_tests/controllers/console/explore/test_trial.py+++ b/api/tests/unit_tests/controllers/console/explore/test_trial.py@@ -88,6 +88,11 @@ def valid_parameters():}+def test_trial_workflow_uses_trial_scoped_simple_account_model():+ assert module.simple_account_model.name == "TrialSimpleAccount"+ assert hasattr(module.simple_account_model, "items")++class TestTrialAppWorkflowRunApi:def test_not_workflow_app(self, app: Flask):api = module.TrialAppWorkflowRunApi()