A comprehensive reference guide for Dify plugin development, including environment requirements, installation methods, development process, plugin categories and types, common code snippets, and solutions to common issues. Suitable for developers to quickly consult and reference.
Learn more: Initializing Development Tools
dify version
command. If it outputs the version information, the installation was successful.
macOS ARM (M Series Chips):
dify
as an example. If you are using a local installation method, please replace the command accordingly, for example ./dify-plugin-darwin-arm64 plugin init
.
Learn more: Dify Plugin Development: Hello World Guide
.env
file, then run the following command in the plugin directory:
Learn more: Remote Debugging Plugins
Learn more: Publishing Overview
tag
class ToolLabelEnum(Enum)
Learn more: Tool Plugin Development
Learn more: Model Plugin Introduction, Quick Integration of a New Model
Learn more: Agent Strategy Plugins
Learn more: Extension Plugins