You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/commandline/plugin/category.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,13 @@ const PLUGIN_GUIDE = `Before starting, here's some basic knowledge about Plugin
23
23
`+BOLD+`- Endpoint`+RESET+`: `+GREEN+`Similar to Service API in Dify and Ingress in Kubernetes. Extend HTTP services as endpoints with custom logic.`+RESET+`
24
24
`+BOLD+`- Agent Strategy`+RESET+`: `+GREEN+`Implement your own agent strategies like Function Calling, ReAct, ToT, CoT, etc.`+RESET+`
25
25
26
-
Based on the ability you want to extend, Plugins are divided into four types: `+BOLD+`Tool`+RESET+`, `+BOLD+`Model`+RESET+`, `+BOLD+`Extension`+RESET+`, and `+BOLD+`Agent Strategy`+RESET+`.
26
+
Based on the ability you want to extend, Plugins are divided into five types: `+BOLD+`Tool`+RESET+`, `+BOLD+`Model`+RESET+`, `+BOLD+`Extension`+RESET+`, `+BOLD+`Agent Strategy`+RESET+`, and `+BOLD+`Datasource`+RESET+`.
27
27
28
28
`+BOLD+`- Tool`+RESET+`: `+YELLOW+`A tool provider that can also implement endpoints. For example, building a Discord Bot requires both `+BLUE+`Sending`+RESET+YELLOW+` and `+BLUE+`Receiving Messages`+RESET+YELLOW+`, so both `+BOLD+`Tool`+RESET+YELLOW+` and `+BOLD+`Endpoint`+RESET+YELLOW+` functionality.`+RESET+`
29
29
`+BOLD+`- Model`+RESET+`: `+YELLOW+`Strictly for model providers, no other extensions allowed.`+RESET+`
30
30
`+BOLD+`- Extension`+RESET+`: `+YELLOW+`For simple HTTP services that extend functionality.`+RESET+`
31
31
`+BOLD+`- Agent Strategy`+RESET+`: `+YELLOW+`Implement custom agent logic with a focused approach.`+RESET+`
32
+
`+BOLD+`- Datasource`+RESET+`: `+YELLOW+`Provide datasource for Dify RAG Pipeline.`+RESET+`
32
33
33
34
We've provided templates to help you get started. Choose one of the options below:
0 commit comments