Files
Harry 284878ec5a fix: handle exception in dynamic select options when trigger is not registered
When using dynamic select options in tools/models, the plugin executor
tries to get a trigger event handler even if no trigger is registered.
This caused an unhandled exception that broke the dynamic select
functionality.

Added try-except block to get_trigger_event_handler_safely() to catch
and log any exceptions, returning None instead of propagating the error.
2026-01-12 17:44:53 +08:00
..
2025-07-09 20:17:32 +08:00

Dify Plugin SDK

A Python SDK for building plugins for Dify.

Version Management

This SDK follows Semantic Versioning (a.b.c):

  • a: Major version - Indicates significant architectural changes or incompatible API modifications
  • b: Minor version - Indicates new feature additions while maintaining backward compatibility
  • c: Patch version - Indicates backward-compatible bug fixes

For SDK Users

When depending on this SDK, it's recommended to specify version constraints that:

  • Allow patch and minor updates for bug fixes and new features
  • Prevent major version updates to avoid breaking changes

Example in your project's dependency management:

dify_plugin>=0.3.0,<0.5.0