@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
26 lines (25 loc) • 1.01 kB
TypeScript
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
import type { string_javascript_name } from '../../types/string_person_fullname';
/**
* 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;