src / index.ts
import { createConfigSchematics, type PluginContext } from "@lmstudio/sdk";
import { configSchematics } from "./config";
import { toolsProvider } from "./toolsProvider";
// This is the entry point of the plugin. The main function is to register different components
// You do not need to modify this file
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics);
// Register the tools provider.
context.withToolsProvider(toolsProvider);
}
src / index.ts
import { createConfigSchematics, type PluginContext } from "@lmstudio/sdk";
import { configSchematics } from "./config";
import { toolsProvider } from "./toolsProvider";
// This is the entry point of the plugin. The main function is to register different components
// You do not need to modify this file
export async function main(context: PluginContext) {
context.withConfigSchematics(configSchematics);
// Register the tools provider.
context.withToolsProvider(toolsProvider);
}