UNPKG

@promptbook/node

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

6 lines (5 loc) 321 B
import type { RunGoScriptOptions } from './RunGoScriptOptions'; /** * Creates a temporary script file, runs a handler, and cleans it up unless preservation is requested or the run fails. */ export declare function withTempScript<T>(options: RunGoScriptOptions, handler: (scriptPath: string) => Promise<T>): Promise<T>;