|
4 月之前 | |
---|---|---|
.github | 4 月之前 | |
.script | 6 月之前 | |
.vscode | 5 月之前 | |
cmd | 4 月之前 | |
docker | 5 月之前 | |
docs | 6 月之前 | |
internal | 4 月之前 | |
pkg | 4 月之前 | |
tests | 5 月之前 | |
.env.example | 5 月之前 | |
.gitignore | 6 月之前 | |
LICENSE | 5 月之前 | |
README.md | 5 月之前 | |
dify.rb | 6 月之前 | |
entrypoint.sh | 7 月之前 | |
go.mod | 5 月之前 | |
go.sum | 5 月之前 |
Dify Plugin Daemon is a service that manages the lifecycle of plugins. It's responsible for 3 types of runtimes:
Dify api server will communicate with the daemon to get all the status of plugins like which plugin was installed to which workspace, and receive requests from Dify api server to invoke a plugin like a serverless function.
All requests from Dify api based on HTTP protocol, but depends on the runtime type, the daemon will forward the request to the corresponding runtime in different ways.
For more detailed introduction about Dify plugin, please refer to our docs https://docs.dify.ai/plugins/introduction.
Firstly copy the .env.example
file to .env
and set the correct environment variables like DB_HOST
etc.
cp .env.example .env
Attention that the PYTHON_INTERPRETER_PATH
is the path to the python interpreter, please specify the correct path according to your python installation and make sure the python version is 3.11 or higher, as dify-plugin-sdk requires.
We recommend you to use vscode
to debug the daemon, and a launch.json
file is provided in the .vscode
directory.
Dify Plugin Daemon is released under the Apache-2.0 license.