From a63004559d2648bbd57705b06a7864ba4facccc9 Mon Sep 17 00:00:00 2001 From: zyqzyq Date: Thu, 14 May 2026 13:41:35 +0800 Subject: [PATCH] add param type date and date-picker --- src/dify_plugin/entities/provider_config.py | 2 ++ src/dify_plugin/entities/tool.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/dify_plugin/entities/provider_config.py b/src/dify_plugin/entities/provider_config.py index 867fcf22..f674b69e 100644 --- a/src/dify_plugin/entities/provider_config.py +++ b/src/dify_plugin/entities/provider_config.py @@ -38,6 +38,8 @@ class CommonParameterType(Enum): OBJECT = "object" ARRAY = "array" DYNAMIC_SELECT = "dynamic-select" + DATE = "date" + DATE_PICKER = "date-picker" @docs( diff --git a/src/dify_plugin/entities/tool.py b/src/dify_plugin/entities/tool.py index 5fda0019..053fe398 100644 --- a/src/dify_plugin/entities/tool.py +++ b/src/dify_plugin/entities/tool.py @@ -87,6 +87,8 @@ class ToolParameterType(StrEnum): OBJECT = CommonParameterType.OBJECT.value ARRAY = CommonParameterType.ARRAY.value DYNAMIC_SELECT = CommonParameterType.DYNAMIC_SELECT.value + DATE = CommonParameterType.DATE.value + DATE_PICKER = CommonParameterType.DATE_PICKER.value class ToolParameterForm(Enum): SCHEMA = "schema" # should be set while adding tool