askexperts
Version:
AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol
5 lines (4 loc) • 320 B
TypeScript
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
export declare function makeTool<ParamsType, ExtraType, ResponseType extends {
[x: string]: unknown;
}>(callback: (params: ParamsType, extra: ExtraType) => Promise<ResponseType>): (params: ParamsType, extra: ExtraType) => Promise<CallToolResult>;