From 82f93b5858f1f37a983cf2affcbcc28ccaf25c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 3 Jun 2026 17:16:55 +0800 Subject: [PATCH] fix: Fix an exception where incomplete parameters were generated by a large model when calling the `Workflow Tool` in the `ai-chat` node, resulting in missing parameters being thrown --- apps/application/flow/tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/application/flow/tools.py b/apps/application/flow/tools.py index 70d3ad38d1c..8adde94bf16 100644 --- a/apps/application/flow/tools.py +++ b/apps/application/flow/tools.py @@ -1031,7 +1031,10 @@ def get_workflow_args(tool, qv): input_field_list = node.get("properties").get("user_input_field_list") return build_schema( { - field.get("field"): (get_type(field.get("type")), Field(..., description=field.get("desc"))) + field.get("field"): ( + get_type(field.get("type")), + Field(..., required=True, description=field.get("desc")) if field.get("is_required") else Field(default=None, required=False, description=field.get("desc")) + ) for field in input_field_list } )