dist / toolsProvider.d.ts
import { Tool } from "@lmstudio/sdk";
export interface ToolExecutionContext {
onToolStart?: (callId: string, name: string, args: any) => void;
onToolResult?: (callId: string, name: string, result: any, howl: string, elapsedMs: number) => void;
}
export declare function toolsProvider(): Promise<any[]>;
export declare function wolfHowl(toolName: string): string;
/**
* Creates genuine @lmstudio/sdk tools for use in model.act().
* Each tool uses standard Zod schemas and executes via the local engine or Trasanah,
* streaming progress via the provided execution context callbacks.
*/
export declare function createSDKTools(context?: ToolExecutionContext): Tool[];
export declare function executeTool(rawToolName: string, args?: any): Promise<any>;
export interface ExtractedToolCall {
name: string;
arguments: any;
fullMatch?: string;
source?: string;
}
/**
* Universal Multi-Regex Tool Call Sniffer
* Supports standard JSON-RPC, XML execute_tool, and compact lightweight triggers.
*/
export declare function extractAllToolsFromText(text: string): ExtractedToolCall[];
//# sourceMappingURL=toolsProvider.d.ts.mapdist / toolsProvider.d.ts
import { Tool } from "@lmstudio/sdk";
export interface ToolExecutionContext {
onToolStart?: (callId: string, name: string, args: any) => void;
onToolResult?: (callId: string, name: string, result: any, howl: string, elapsedMs: number) => void;
}
export declare function toolsProvider(): Promise<any[]>;
export declare function wolfHowl(toolName: string): string;
/**
* Creates genuine @lmstudio/sdk tools for use in model.act().
* Each tool uses standard Zod schemas and executes via the local engine or Trasanah,
* streaming progress via the provided execution context callbacks.
*/
export declare function createSDKTools(context?: ToolExecutionContext): Tool[];
export declare function executeTool(rawToolName: string, args?: any): Promise<any>;
export interface ExtractedToolCall {
name: string;
arguments: any;
fullMatch?: string;
source?: string;
}
/**
* Universal Multi-Regex Tool Call Sniffer
* Supports standard JSON-RPC, XML execute_tool, and compact lightweight triggers.
*/
export declare function extractAllToolsFromText(text: string): ExtractedToolCall[];
//# sourceMappingURL=toolsProvider.d.ts.map