UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

19 lines (18 loc) 824 B
import type { string_javascript_name } from '../../types/string_person_fullname'; /** * Formats used tool functions into object-literal method syntax for generated SDK harnesses. * * Tool implementations are authored in several shapes across the repository: * - object-literal methods * - function declarations * - arrow functions * * This helper normalizes all supported shapes into valid object members so the * transpiled `tools` block stays syntactically correct. * * @param usedToolFunctions - Tool function sources indexed by tool name. * @returns Object-member definitions ready to embed inside a transpiled `const tools = { ... }` block. * * @private shared between SDK transpilers */ export declare function formatUsedToolFunctions(usedToolFunctions: Record<string_javascript_name, string>): string;