@yuxilabs/gptp-core
Version:
Core validation, formatting and execution logic for the GPTP file format.
26 lines • 791 B
TypeScript
import type { GPTPDocument, GPTPMessage } from '@/types/gptpTypes';
export interface ExecutionOptions {
input: Record<string, any>;
run?: boolean;
signal?: AbortSignal;
timeoutMs?: number;
validate?: boolean;
retry?: {
retries?: number;
baseDelayMs?: number;
maxDelayMs?: number;
jitter?: boolean;
};
lockfilePath?: string;
}
export interface ExecutionResult {
resolvedMessages: GPTPMessage[];
modelOutput: string;
renderedPromptHash?: string;
variablesHash?: string;
}
/**
* Executes a GPTP prompt: resolves variables and optionally calls a model.
*/
export declare function executePrompt(prompt: GPTPDocument, options: ExecutionOptions): Promise<ExecutionResult>;
//# sourceMappingURL=executePrompt.d.ts.map