From c58003506906dff7ab31d556c9303c4a39ad0f23 Mon Sep 17 00:00:00 2001 From: hjlarry Date: Fri, 5 Dec 2025 14:23:37 +0800 Subject: [PATCH] feat: to support tool multi-select input --- python/dify_plugin/entities/tool.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/dify_plugin/entities/tool.py b/python/dify_plugin/entities/tool.py index dd2e4e04..6bb50743 100644 --- a/python/dify_plugin/entities/tool.py +++ b/python/dify_plugin/entities/tool.py @@ -112,9 +112,13 @@ class ToolParameterForm(Enum): form: ToolParameterForm = Field(..., description="The form of the parameter, schema/form/llm") llm_description: str | None = None required: bool | None = False - default: Union[int, float, str] | None = None + default: Union[int, float, str, list] | None = None min: Union[float, int] | None = None max: Union[float, int] | None = None + multiple: bool | None = Field( + default=False, + description="Whether the parameter is multiple select, only valid for select or dynamic-select type", + ) precision: int | None = None options: list[ToolParameterOption] | None = None # MCP object and array type parameters use this field to store the schema