Forked from arkantu/arkantu-core-tools
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { toolsProvider } from "./toolsProvider";
import { promptPreprocessor } from "./promptPreprocessor";
import { pluginConfig } from "./config";
export async function main(context: PluginContext) {
// 1. Register the configuration scheme
context.withConfigSchematics(pluginConfig);
// 2. Register the tools
context.withToolsProvider(toolsProvider);
// 3. Register the prompt preprocessor (injection of the system prompt)
context.withPromptPreprocessor(promptPreprocessor);
}