mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-23 02:05:27 -04:00
883eab5cbe
- Introduced a new CHECKBOX parameter type in constant.go for plugin entities. - Updated tool_declaration.go and trigger_declaration.go to include TOOL_PARAMETER_TYPE_CHECKBOX and TRIGGER_PARAMETER_TYPE_CHECKBOX respectively. - Enhanced validation logic to accommodate the new CHECKBOX type in parameter checks.
29 lines
786 B
Go
29 lines
786 B
Go
package plugin_entities
|
|
|
|
const (
|
|
SECRET_INPUT = "secret-input"
|
|
TEXT_INPUT = "text-input"
|
|
SELECT = "select"
|
|
STRING = "string"
|
|
NUMBER = "number"
|
|
FILE = "file"
|
|
FILES = "files"
|
|
BOOLEAN = "boolean"
|
|
APP_SELECTOR = "app-selector"
|
|
MODEL_SELECTOR = "model-selector"
|
|
// TOOL_SELECTOR = "tool-selector"
|
|
TOOLS_SELECTOR = "array[tools]"
|
|
ANY = "any"
|
|
// DynamicSelect
|
|
DYNAMIC_SELECT = "dynamic-select"
|
|
ARRAY = "array"
|
|
OBJECT = "object"
|
|
CHECKBOX = "checkbox"
|
|
)
|
|
|
|
type ParameterOption struct {
|
|
Value string `json:"value" yaml:"value" validate:"required"`
|
|
Label I18nObject `json:"label" yaml:"label" validate:"required"`
|
|
Icon string `json:"icon" yaml:"icon" validate:"omitempty"`
|
|
}
|