pit-manager
Version:
Centralized prompt management system for Human Behavior AI agents
31 lines • 1.1 kB
TypeScript
/**
* Simplified prompt loading and rendering for TypeScript
*/
import { PromptVariables } from './types';
/**
* Load and render a prompt template with positional variables.
*
* Variables are matched to {{variable}} placeholders in order of appearance.
*
* @param templateName - Name of the template file (with or without .md extension)
* @param variables - List of values to substitute in order of appearance
* @returns Rendered prompt string
*
* @example
* // If template has {{role}} and {{task}}
* const prompt = prompts("assistant.md", ["expert", "analyze data"]);
*/
export declare function prompts(templateName: string, variables: PromptVariables): string;
/**
* Get the current prompt file being used
*/
export declare function getCurrentPromptFile(): string | undefined;
/**
* Get the parent execution ID if a ModelResponse was passed to prompts()
*/
export declare function getParentExecutionId(): string | undefined;
/**
* Clear the prompt context (used after model execution)
*/
export declare function clearPromptContext(): void;
//# sourceMappingURL=prompts.d.ts.map