Project Files
src / tools-provider.ts
/**
* Registers the plugin's tools with the LM Studio SDK.
*/
import { createCurrentDateTool } from "./tools/current-date-tool"
import type { Tool, ToolsProviderController } from "@lmstudio/sdk"
/**
* Register the plugin's tools with the LM Studio SDK controller.
*
* @param ctl - Tools provider controller supplied by the LM Studio SDK.
* @returns The registered Date tools.
*/
export async function toolsProvider(ctl: ToolsProviderController): Promise<Tool[]> {
return [createCurrentDateTool(ctl)]
}