Plugin info by Manifest¶
The Manifest is a YAML-compliant file that defines the most basic information of a plugin, including but not limited to the plugin name, author, included tools, models, etc. For the overall architecture of the plugin, please refer to Basic Concepts of Plugin Development and Developer Cheatsheet.
If the format of this file is incorrect, the parsing and packaging process of the plugin will fail.
Code Example¶
Below is a simple example of a Manifest file. The meaning and function of each data item will be explained later.
For reference code of other plugins, please refer to the GitHub code repository.
version: 0.0.1
type: "plugin"
author: "Yeuoly"
name: "neko"
label:
en_US: "Neko"
created_at: "2024-07-12T08:03:44.658609186Z"
icon: "icon.svg"
resource:
memory: 1048576
permission:
tool:
enabled: true
model:
enabled: true
llm: true
endpoint:
enabled: true
app:
enabled: true
storage:
enabled: true
size: 1048576
plugins:
endpoints:
- "provider/neko.yaml"
meta:
version: 0.0.1
arch:
- "amd64"
- "arm64"
runner:
language: "python"
version: "3.10"
entrypoint: "main"
privacy: "./privacy.md"
Structure¶
The version of the plugin.
Plugin type, currently only plugin is supported, bundle will be supported in the future.
Author, defined as the organization name in the Marketplace.
Multilingual name.
Creation time, required by the Marketplace not to be later than the current time.
Icon path.
Resources to apply for.
Maximum memory usage, mainly related to AWS Lambda resource application on SaaS, unit in bytes.
Permission application.
Permission for reverse invocation of tools.
Whether to enable tool permissions.
Permission for reverse invocation of models.
Whether to enable model permissions.
Whether to enable large language model permissions.
Whether to enable text embedding model permissions.
Whether to enable rerank model permissions.
Whether to enable text-to-speech model permissions.
Whether to enable speech-to-text model permissions.
Whether to enable content moderation model permissions.
Permission for reverse invocation of nodes.
Whether to enable node permissions.
Permission to register `endpoint`.
Whether to enable endpoint permissions.
Permission for reverse invocation of `app`.
Whether to enable app permissions.
Permission to apply for persistent storage.
Whether to enable storage permissions.
Maximum allowed persistent memory size, unit in bytes.
A list of yaml files for the specific capabilities extended by the plugin. Absolute path within the plugin package. For example, if you need to extend a model, you need to define a file similar to openai.yaml, fill in the file path here, and the file at this path must actually exist, otherwise packaging will fail.
Warning:
Extending both tools and models simultaneously is not allowed.Warning:
Having no extensions is not allowed.Warning:
Extending both models and Endpoints simultaneously is not allowed.Warning:
Currently, only one provider is supported for each type of extension.
Plugin extension for [Tool](/en/develop-plugin/dev-guides-and-walkthroughs/tool-plugin) providers.
Plugin extension for [Model](/en/develop-plugin/features-and-specs/plugin-types/model-designing-rules) providers.
Plugin extension for [Endpoints](/en/develop-plugin/dev-guides-and-walkthroughs/develop-a-slack-bot-plugin) providers.
Plugin extension for [Agent Strategy](/en/develop-plugin/features-and-specs/advanced-development/reverse-invocation) providers.
Metadata for the plugin.
`manifest` format version, initial version `0.0.1`.
Supported architectures, currently only `amd64` and `arm64` are supported.
Runtime configuration.
Programming language. Currently only Python is supported.
Language version, currently only `3.12` is supported.
Program entry point, should be `main` under Python.
Specifies the relative path or URL of the plugin's privacy policy file, e.g., "./privacy.md" or "https://your-web/privacy". If you plan to list the plugin on the FlexAI Marketplace, this field is required to provide clear user data usage and privacy statements. For detailed filling guidelines, please refer to Plugin Privacy Data Protection Guidelines.
{/ Contributing Section DO NOT edit this section! It will be automatically generated by the script. /}