@promptbook/openai
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
27 lines (26 loc) • 1.03 kB
TypeScript
import { ToolFunction } from '../../_packages/types.index';
import { string_javascript_name } from '../../types/typeAliases';
/**
* Map of tool functions keyed by function name.
*
* @private internal helper for commitment tool registry
*/
export type CommitmentToolFunctions = Record<string_javascript_name, ToolFunction>;
/**
* Collects tool functions from all commitment definitions.
*
* @returns Map of tool function implementations.
* @private internal helper for commitment tool registry
*/
export declare function collectCommitmentToolFunctions(): CommitmentToolFunctions;
/**
* Creates a proxy that resolves tool functions on demand.
*
* @param getFunctions - Provider of current tool functions.
* @returns Proxy exposing tool functions as properties.
* @private internal helper for commitment tool registry
*/
export declare function createToolFunctionsProxy(getFunctions: () => CommitmentToolFunctions): CommitmentToolFunctions;
/**
* Note: [💞] Ignore a discrepancy between file name and entity name
*/