@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
22 lines (18 loc) • 889 B
text/typescript
import { LobeChatPluginManifest } from '@lobehub/chat-plugin-sdk';
import { LobeTool } from '@/types/tool';
import { LobeToolCustomPlugin } from '@/types/tool/plugin';
export interface InstallPluginParams {
identifier: string;
manifest: LobeChatPluginManifest;
type: 'plugin' | 'customPlugin';
}
export interface IPluginService {
createCustomPlugin: (customPlugin: LobeToolCustomPlugin) => Promise<void>;
getInstalledPlugins: () => Promise<LobeTool[]>;
installPlugin: (plugin: InstallPluginParams) => Promise<void>;
removeAllPlugins: () => Promise<void>;
uninstallPlugin: (identifier: string) => Promise<void>;
updatePlugin: (id: string, value: LobeToolCustomPlugin) => Promise<void>;
updatePluginManifest: (id: string, manifest: LobeChatPluginManifest) => Promise<void>;
updatePluginSettings: (id: string, settings: any, signal?: AbortSignal) => Promise<void>;
}