From 3346fd8deee997ddd3a3b875ead77381344f45d5 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 7bd745b9481..7ee3bd7b1b5 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 } )