[PR #162] [MERGED] feat: add trigger functionality #193

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/162
Author: @Yeuoly
Created: 6/23/2025
Status: Merged
Merged: 11/14/2025
Merged by: @Mairuis

Base: mainHead: feat/trigger


📝 Commits (10+)

  • 4bc3d18 feat: add trigger functionality and dynamic select parameter support
  • 0df3d13 fix: linter
  • 503db4c feat: add dynamic select support
  • ffc06fa Merge branch 'feat/dynamic-select' into feat/trigger
  • 24c77fa feat: implement dynamic parameter fetching functionality
  • 90fe40b Merge branch 'feat/dynamic-select' into feat/trigger
  • 5415dba feat: enhance plugin functionality with dynamic parameter options and trigger interface
  • 5ba4e2f Merge branch 'feat/dynamic-select' into feat/trigger
  • f2a079f Merge remote-tracking branch 'origin/main' into feat/trigger
  • 65422a8 refactor(trigger): update type hints and add dispatch_event to trigger provider

📊 Changes

612 files changed (+80469 additions, -234 deletions)

View changed files

📝 .gitignore (+3 -1)
CLAUDE.md (+110 -0)
📝 python/.vscode/launch.json (+61 -1)
📝 python/dify_plugin/core/entities/message.py (+1 -0)
📝 python/dify_plugin/core/entities/plugin/request.py (+145 -3)
📝 python/dify_plugin/core/entities/plugin/setup.py (+5 -0)
python/dify_plugin/core/entities/providers.py (+37 -0)
📝 python/dify_plugin/core/plugin_executor.py (+237 -48)
📝 python/dify_plugin/core/plugin_registration.py (+162 -52)
python/dify_plugin/core/trigger_factory.py (+181 -0)
📝 python/dify_plugin/core/utils/http_parser.py (+145 -40)
📝 python/dify_plugin/core/utils/yaml_loader.py (+2 -1)
📝 python/dify_plugin/entities/oauth.py (+9 -0)
📝 python/dify_plugin/entities/provider_config.py (+4 -1)
📝 python/dify_plugin/entities/tool.py (+1 -0)
python/dify_plugin/entities/trigger.py (+416 -0)
📝 python/dify_plugin/errors/__init__.py (+3 -0)
python/dify_plugin/errors/trigger.py (+99 -0)
📝 python/dify_plugin/interfaces/trigger/__init__.py (+698 -29)
📝 python/dify_plugin/plugin.py (+46 -0)

...and 80 more files

📄 Description

  • Introduced new Trigger and TriggerProvider classes for handling trigger operations.
  • Added TriggerResponse, TriggerRuntime, and TriggerParameter models to manage trigger data.
  • Implemented DynamicSelectProtocol for dynamic parameter options.
  • Updated ToolParameterOption to inherit from ParameterOption.
  • Enhanced CommonParameterType with DYNAMIC_SELECT option.
  • Added tests for TriggerProvider and Trigger to ensure proper functionality.

🔄 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/162 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 11/14/2025 **Merged by:** [@Mairuis](https://github.com/Mairuis) **Base:** `main` ← **Head:** `feat/trigger` --- ### 📝 Commits (10+) - [`4bc3d18`](https://github.com/langgenius/dify-plugin-sdks/commit/4bc3d18364a4db000d57cde21ef5a6f45b9ac7c2) feat: add trigger functionality and dynamic select parameter support - [`0df3d13`](https://github.com/langgenius/dify-plugin-sdks/commit/0df3d13ec64f432f091c45e93f875163178f71fa) fix: linter - [`503db4c`](https://github.com/langgenius/dify-plugin-sdks/commit/503db4ced506be80e79b67dd0a872bc7124f7284) feat: add dynamic select support - [`ffc06fa`](https://github.com/langgenius/dify-plugin-sdks/commit/ffc06fa5c05f24f21779b44de84bab20c201c152) Merge branch 'feat/dynamic-select' into feat/trigger - [`24c77fa`](https://github.com/langgenius/dify-plugin-sdks/commit/24c77fafaeb73b6928b32e3c8234d85c8aa88527) feat: implement dynamic parameter fetching functionality - [`90fe40b`](https://github.com/langgenius/dify-plugin-sdks/commit/90fe40b8b7e277e9365adba00a9c33b001732652) Merge branch 'feat/dynamic-select' into feat/trigger - [`5415dba`](https://github.com/langgenius/dify-plugin-sdks/commit/5415dbafa9a3eacb89c0ff6880ad887282ba052f) feat: enhance plugin functionality with dynamic parameter options and trigger interface - [`5ba4e2f`](https://github.com/langgenius/dify-plugin-sdks/commit/5ba4e2fffc0d8e129bf7626c4f2bdfad97f8aaa2) Merge branch 'feat/dynamic-select' into feat/trigger - [`f2a079f`](https://github.com/langgenius/dify-plugin-sdks/commit/f2a079f835f5e33e18618ee1efc9133a63623bfe) Merge remote-tracking branch 'origin/main' into feat/trigger - [`65422a8`](https://github.com/langgenius/dify-plugin-sdks/commit/65422a8af7747f080b5721205bbabdad77401953) refactor(trigger): update type hints and add dispatch_event to trigger provider ### 📊 Changes **612 files changed** (+80469 additions, -234 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -1) ➕ `CLAUDE.md` (+110 -0) 📝 `python/.vscode/launch.json` (+61 -1) 📝 `python/dify_plugin/core/entities/message.py` (+1 -0) 📝 `python/dify_plugin/core/entities/plugin/request.py` (+145 -3) 📝 `python/dify_plugin/core/entities/plugin/setup.py` (+5 -0) ➕ `python/dify_plugin/core/entities/providers.py` (+37 -0) 📝 `python/dify_plugin/core/plugin_executor.py` (+237 -48) 📝 `python/dify_plugin/core/plugin_registration.py` (+162 -52) ➕ `python/dify_plugin/core/trigger_factory.py` (+181 -0) 📝 `python/dify_plugin/core/utils/http_parser.py` (+145 -40) 📝 `python/dify_plugin/core/utils/yaml_loader.py` (+2 -1) 📝 `python/dify_plugin/entities/oauth.py` (+9 -0) 📝 `python/dify_plugin/entities/provider_config.py` (+4 -1) 📝 `python/dify_plugin/entities/tool.py` (+1 -0) ➕ `python/dify_plugin/entities/trigger.py` (+416 -0) 📝 `python/dify_plugin/errors/__init__.py` (+3 -0) ➕ `python/dify_plugin/errors/trigger.py` (+99 -0) 📝 `python/dify_plugin/interfaces/trigger/__init__.py` (+698 -29) 📝 `python/dify_plugin/plugin.py` (+46 -0) _...and 80 more files_ </details> ### 📄 Description - Introduced new `Trigger` and `TriggerProvider` classes for handling trigger operations. - Added `TriggerResponse`, `TriggerRuntime`, and `TriggerParameter` models to manage trigger data. - Implemented `DynamicSelectProtocol` for dynamic parameter options. - Updated `ToolParameterOption` to inherit from `ParameterOption`. - Enhanced `CommonParameterType` with `DYNAMIC_SELECT` option. - Added tests for `TriggerProvider` and `Trigger` to ensure proper functionality. --- <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:10 -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#193