路径规范
在 Manifest 或任何 YAML 文件中填写文件路径时,根据文件类型遵循以下两条规则:- 图片、视频等多媒体文件(例如插件的
icon),放在插件根目录下的_assets文件夹中。 - 普通文本文件,如
.py或.yaml代码文件,使用其在插件项目中的绝对路径引用。
通用结构
部分数据结构在工具、模型和 Endpoint 之间共享,在此统一定义。I18nObject
I18nObject 是符合 IETF BCP 47 标准的国际化结构,支持四种语言:
ProviderConfig
ProviderConfig 是供应商通用表单结构,Tool 和 Endpoint 都会使用。
显示标签,遵循 IETF BCP 47 标准。
帮助文档链接标签,遵循 IETF BCP 47。
多语言占位符文本,遵循 IETF BCP 47。
ProviderConfigOption (object)
选项的显示标签,遵循 IETF BCP 47。
ProviderConfigType (string)
ProviderConfigScope (string)
当type 为 model-selector 时:
当 type 为 app-selector 时:
当 type 为 tool-selector 时:
ModelConfig
模型类型枚举,参见 模型设计规则。