Files
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

27 lines
546 B
YAML

identity:
name: {{ .PluginName }}
author: {{ .Author }}
label:
en_US: "{{ .PluginName | SnakeToCamel }}"
description:
en_US: "{{ .PluginName | SnakeToCamel }}"
parameters:
- name: model
type: model-selector
scope: tool-call&llm
required: true
label:
en_US: Model
zh_Hans: 模型
pt_BR: Model
- name: tools
type: array[tools]
required: true
label:
en_US: Tools list
zh_Hans: 工具列表
pt_BR: Tools list
extra:
python:
source: strategies/{{ .PluginName }}.py