Files
dify-plugin-daemon/cmd/commandline/plugin/templates/python/tool.yaml
T
Yeuoly 3918b377f2 refactor: streamline plugin initialization and update YAML templates for consistency (#313)
- Removed redundant flag retrieval in the plugin initialization process, simplifying the code.
- Updated permission handling to use a single `permissionRequirement` structure for better clarity and maintainability.
- Enhanced YAML templates by adding quotes around dynamic values to ensure proper formatting and prevent potential parsing issues.
2025-05-27 19:48:11 +08:00

31 lines
758 B
YAML

identity:
name: "{{ .PluginName }}"
author: "{{ .Author }}"
label:
en_US: "{{ .PluginName }}"
zh_Hans: "{{ .PluginName }}"
pt_BR: "{{ .PluginName }}"
description:
human:
en_US: "{{ .PluginDescription }}"
zh_Hans: "{{ .PluginDescription }}"
pt_BR: "{{ .PluginDescription }}"
llm: "{{ .PluginDescription }}"
parameters:
- name: query
type: string
required: true
label:
en_US: Query string
zh_Hans: 查询语句
pt_BR: Query string
human_description:
en_US: "{{ .PluginDescription }}"
zh_Hans: "{{ .PluginDescription }}"
pt_BR: "{{ .PluginDescription }}"
llm_description: "{{ .PluginDescription }}"
form: llm
extra:
python:
source: tools/{{ .PluginName }}.py