本文档用于记录从 0 学习并开发一个插件(尽可能多的覆盖 dify 1.0 的能力)
暂时无法在飞书文档外展示此内容
https://github.com/langgenius/dify-plugin-daemon/releases/tag/0.0.1-beta.22
跳过中间所有的摩擦,这一阶段的目标是:
chenxiefan@chenxiefandeMBP difyplugin % dify-plugin
Dify is a cli tool to help you develop your Dify projects.
Usage:
dify [command]
Available Commands:
bundle Bundle
completion Generate the autocompletion script for the specified shell
help Help about any command
plugin Plugin
version Version
Flags:
--config string config file (default is $HOME/.dify.yaml)
-h, --help help for dify
Use "dify [command] --help" for more information about a command.
当终端中出现上诉指令即为成功
在 Dify 的插件系统中,Endpoint 是一个核心概念。以 Telegram 机器人插件为例:
当用户在 Telegram 发消息时: