cerevox
Version:
TypeScript SDK for browser automation and secure command execution in highly available and scalable micro computer environments
30 lines • 807 B
TypeScript
/**
* 编译 prompt 模板接口
*/
export interface PromptCompileOptions {
width: number;
height: number;
duration: number;
}
/**
* 编译后的 prompt 结果接口
*/
export interface CompiledPrompt {
role: 'system';
content: string;
}
/**
* 使用 nunjucks 编译 scisnap.prompt.tpl 模板
*
* @param options - 编译选项,包含 width 和 height 参数
* @returns 编译后的 prompt 对象,格式为 {role: 'system', content: prompt}
*
* @example
* ```typescript
* const prompt = compilePrompt({ width: 800, height: 600 });
* console.log(prompt.role); // 'system'
* console.log(prompt.content); // 编译后的模板内容
* ```
*/
export declare const compilePrompt: (options: PromptCompileOptions) => CompiledPrompt;
//# sourceMappingURL=promot-tools.d.ts.map