UNPKG

@eko-ai/eko

Version:

Empowering language to transform human words into action.

30 lines 768 B
export declare class PromptTemplate { /** * Simple template rendering method, does not support nesting. * * @param template - The prompt template to render. * Example: * ``` * <if param1> * param1: {{param1}} * </if> * ----param2: {{param2}} * <if param3> * param3: {{param3}} * </if> * ``` * @param data - The data to render the prompt template with. * Example: * ``` * { * param1: "value1", * param2: "value2", * param3: "value3", * } * ``` * @returns The rendered prompt template. */ static render(template: string, data: Record<string, any>): string; private static replaceVars; } //# sourceMappingURL=prompt-template.d.ts.map