[PR #163] [MERGED] feat[0.4.0]: add dynamic select support #194

Closed
opened 2026-02-15 21:16:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/163
Author: @Yeuoly
Created: 6/23/2025
Status: Merged
Merged: 6/27/2025
Merged by: @Yeuoly

Base: mainHead: feat/dynamic-select


📝 Commits (7)

  • 503db4c feat: add dynamic select support
  • 24c77fa feat: implement dynamic parameter fetching functionality
  • 5415dba feat: enhance plugin functionality with dynamic parameter options and trigger interface
  • 059b59b Merge branch 'main' into feat/dynamic-select
  • 82bfb28 docs: update README.md to include support for dynamic-select parameter type in manifest versioning
  • 81d8237 chore: remove code_based_workflow
  • 0376f51 Merge branch 'main' into feat/dynamic-select

📊 Changes

41 files changed (+290 additions, -543 deletions)

View changed files

📝 README.md (+2 -1)
📝 python/dify_plugin/core/entities/plugin/request.py (+18 -1)
📝 python/dify_plugin/core/plugin_executor.py (+31 -0)
📝 python/dify_plugin/entities/__init__.py (+20 -1)
📝 python/dify_plugin/entities/provider_config.py (+1 -0)
📝 python/dify_plugin/entities/tool.py (+6 -14)
📝 python/dify_plugin/interfaces/tool/__init__.py (+30 -3)
python/dify_plugin/interfaces/trigger/__init__.py (+99 -0)
📝 python/dify_plugin/plugin.py (+7 -0)
python/dify_plugin/protocol/dynamic_select.py (+21 -0)
python/examples/code_based_workflow/.env (+0 -4)
python/examples/code_based_workflow/.gitignore (+0 -1)
python/examples/code_based_workflow/.installed (+0 -0)
python/examples/code_based_workflow/_assets/icon.svg (+0 -10)
python/examples/code_based_workflow/main.py (+0 -6)
python/examples/code_based_workflow/manifest.yaml (+0 -41)
python/examples/code_based_workflow/provider/code_based_workflow.py (+0 -8)
python/examples/code_based_workflow/provider/code_based_workflow.yaml (+0 -28)
python/examples/code_based_workflow/requirements.txt (+0 -1)
python/examples/code_based_workflow/tools/llm.py (+0 -29)

...and 21 more files

📄 Description

  • Introduced ParameterOption class for parameter options with value, label, and optional icon.
  • Updated ToolParameterOption to inherit from ParameterOption.
  • Added DYNAMIC_SELECT to CommonParameterType enum.
  • Implemented fetch_parameter_options method in Tool class for fetching parameter options.
  • Created DynamicSelectProtocol for dynamic select functionality.
  • Added tests for Tool construction and parameter options fetching.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/163 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/dynamic-select` --- ### 📝 Commits (7) - [`503db4c`](https://github.com/langgenius/dify-plugin-sdks/commit/503db4ced506be80e79b67dd0a872bc7124f7284) feat: add dynamic select support - [`24c77fa`](https://github.com/langgenius/dify-plugin-sdks/commit/24c77fafaeb73b6928b32e3c8234d85c8aa88527) feat: implement dynamic parameter fetching functionality - [`5415dba`](https://github.com/langgenius/dify-plugin-sdks/commit/5415dbafa9a3eacb89c0ff6880ad887282ba052f) feat: enhance plugin functionality with dynamic parameter options and trigger interface - [`059b59b`](https://github.com/langgenius/dify-plugin-sdks/commit/059b59b79fa23d3c40ed5b4195f15feff6e68e21) Merge branch 'main' into feat/dynamic-select - [`82bfb28`](https://github.com/langgenius/dify-plugin-sdks/commit/82bfb28facc4d756f68dfc3fd8282086d661ea45) docs: update README.md to include support for `dynamic-select` parameter type in manifest versioning - [`81d8237`](https://github.com/langgenius/dify-plugin-sdks/commit/81d82378de71b2a3768b0de637db22d41e40adec) chore: remove code_based_workflow - [`0376f51`](https://github.com/langgenius/dify-plugin-sdks/commit/0376f515ac44114029b1ff9cd20ed96a2b7eece8) Merge branch 'main' into feat/dynamic-select ### 📊 Changes **41 files changed** (+290 additions, -543 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -1) 📝 `python/dify_plugin/core/entities/plugin/request.py` (+18 -1) 📝 `python/dify_plugin/core/plugin_executor.py` (+31 -0) 📝 `python/dify_plugin/entities/__init__.py` (+20 -1) 📝 `python/dify_plugin/entities/provider_config.py` (+1 -0) 📝 `python/dify_plugin/entities/tool.py` (+6 -14) 📝 `python/dify_plugin/interfaces/tool/__init__.py` (+30 -3) ➕ `python/dify_plugin/interfaces/trigger/__init__.py` (+99 -0) 📝 `python/dify_plugin/plugin.py` (+7 -0) ➕ `python/dify_plugin/protocol/dynamic_select.py` (+21 -0) ➖ `python/examples/code_based_workflow/.env` (+0 -4) ➖ `python/examples/code_based_workflow/.gitignore` (+0 -1) ➖ `python/examples/code_based_workflow/.installed` (+0 -0) ➖ `python/examples/code_based_workflow/_assets/icon.svg` (+0 -10) ➖ `python/examples/code_based_workflow/main.py` (+0 -6) ➖ `python/examples/code_based_workflow/manifest.yaml` (+0 -41) ➖ `python/examples/code_based_workflow/provider/code_based_workflow.py` (+0 -8) ➖ `python/examples/code_based_workflow/provider/code_based_workflow.yaml` (+0 -28) ➖ `python/examples/code_based_workflow/requirements.txt` (+0 -1) ➖ `python/examples/code_based_workflow/tools/llm.py` (+0 -29) _...and 21 more files_ </details> ### 📄 Description - Introduced ParameterOption class for parameter options with value, label, and optional icon. - Updated ToolParameterOption to inherit from ParameterOption. - Added DYNAMIC_SELECT to CommonParameterType enum. - Implemented fetch_parameter_options method in Tool class for fetching parameter options. - Created DynamicSelectProtocol for dynamic select functionality. - Added tests for Tool construction and parameter options fetching. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:10 -05:00
yindo closed this issue 2026-02-15 21:16:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#194