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