[PR #358] [MERGED] feat(dynamic_select): implement dynamic parameter fetching functionality #466

Closed
opened 2026-02-16 01:16:03 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/358
Author: @Yeuoly
Created: 6/24/2025
Status: Merged
Merged: 6/27/2025
Merged by: @Yeuoly

Base: mainHead: feat/dynamic-selector


📝 Commits (2)

  • 8187a09 feat(dynamic_select): implement dynamic parameter fetching functionality
  • 1d60c38 refactor(access_types): rename dynamic select access type to dynamic parameter

📊 Changes

11 files changed (+152 additions, -37 deletions)

View changed files

📝 internal/core/plugin_daemon/access_types/access.go (+30 -26)
internal/core/plugin_daemon/dynamic_select.gen.go (+23 -0)
📝 internal/server/controllers/definitions/definitions.go (+12 -0)
internal/server/controllers/dynamic_select.gen.go (+24 -0)
📝 internal/server/http_server.gen.go (+3 -2)
internal/service/dynamic_select.gen.go (+31 -0)
pkg/entities/dynamic_select_entities/dynamic_select.go (+7 -0)
📝 pkg/entities/plugin_entities/agent_declaration.go (+1 -1)
📝 pkg/entities/plugin_entities/constant.go (+8 -0)
📝 pkg/entities/plugin_entities/tool_declaration.go (+5 -8)
pkg/entities/requests/dynamic_select.go (+8 -0)

📄 Description

For some specific scenarios, we want parameters have select type which could fetch dynamic options list depends on the moment and the identity of users, which provides a powerful functionality for Plugins like Slack and Github etc.

Users will never need to copy and paste parameter like id into text parameter field.

  • Added FetchDynamicParameterOptions function to handle dynamic parameter selection.
  • Introduced new access type and action for dynamic select in access_types.
  • Updated HTTP server routes to include the new endpoint for fetching dynamic parameters.
  • Created necessary service and controller files for dynamic select operations.

🔄 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-daemon/pull/358 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 6/24/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/dynamic-selector` --- ### 📝 Commits (2) - [`8187a09`](https://github.com/langgenius/dify-plugin-daemon/commit/8187a0999ef7e3772d3e9b24a80e2f138b2b7667) feat(dynamic_select): implement dynamic parameter fetching functionality - [`1d60c38`](https://github.com/langgenius/dify-plugin-daemon/commit/1d60c3801374be74985cb731a2b2dab450585899) refactor(access_types): rename dynamic select access type to dynamic parameter ### 📊 Changes **11 files changed** (+152 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_daemon/access_types/access.go` (+30 -26) ➕ `internal/core/plugin_daemon/dynamic_select.gen.go` (+23 -0) 📝 `internal/server/controllers/definitions/definitions.go` (+12 -0) ➕ `internal/server/controllers/dynamic_select.gen.go` (+24 -0) 📝 `internal/server/http_server.gen.go` (+3 -2) ➕ `internal/service/dynamic_select.gen.go` (+31 -0) ➕ `pkg/entities/dynamic_select_entities/dynamic_select.go` (+7 -0) 📝 `pkg/entities/plugin_entities/agent_declaration.go` (+1 -1) 📝 `pkg/entities/plugin_entities/constant.go` (+8 -0) 📝 `pkg/entities/plugin_entities/tool_declaration.go` (+5 -8) ➕ `pkg/entities/requests/dynamic_select.go` (+8 -0) </details> ### 📄 Description For some specific scenarios, we want parameters have `select` type which could fetch dynamic options list depends on the moment and the identity of users, which provides a powerful functionality for Plugins like `Slack` and `Github` etc. Users will never need to copy and paste parameter like `id` into `text` parameter field. - Added FetchDynamicParameterOptions function to handle dynamic parameter selection. - Introduced new access type and action for dynamic select in access_types. - Updated HTTP server routes to include the new endpoint for fetching dynamic parameters. - Created necessary service and controller files for dynamic select operations. --- <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-16 01:16:03 -05:00
yindo closed this issue 2026-02-16 01:16:03 -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-daemon#466