Skip to content

add param type date and date-picker - #733

Merged
fatelei merged 1 commit into
langgenius:mainfrom
zyqzyq:feat/add_param_data_picker
Aug 5, 2026
Merged

add param type date and date-picker#733
fatelei merged 1 commit into
langgenius:mainfrom
zyqzyq:feat/add_param_data_picker

Conversation

@zyqzyq

@zyqzyq zyqzyq commented May 14, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes langgenius/dify#36162

tool plugin add type date and date-picker

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request plugin-daemon labels May 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces DATE and DATE_PICKER as new tool parameter types and updates the validation logic. The review feedback points out that the existing ToolParameter struct cannot enforce date range constraints due to its float64 fields and lacks format validation for default values. Additionally, it is suggested to evaluate if both types are necessary to avoid redundancy.

Comment thread pkg/entities/plugin_entities/tool_declaration.go
Comment thread pkg/entities/plugin_entities/tool_declaration.go
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 5, 2026
@fatelei
fatelei merged commit f477b50 into langgenius:main Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer plugin-daemon size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: tool plugin add date and date-picker type

3 participants