Promise<string | null | undefined>:插件名称
PluginManager
getPluginName
获取插件名称。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
获取插件名称。
getPluginName(): Promise<string | null | undefined>;
Promise<string | null | undefined>:插件名称import { PluginManager } from 'sn-plugin-lib';
/**
* 获取插件名称的示例。
*/
export async function exampleGetPluginName() {
const name = await PluginManager.getPluginName();
return name;
}