UNPKG

@meldscience/meld

Version:

pipeable one-shot prompt scripting toolkit

25 lines (24 loc) 665 B
import { AIProvider } from './providers/anthropic'; export interface OneshotOptions { model: string; promptFile: string; system?: string; systemFile?: string; variations?: string[]; iterations?: number; } export interface ResponseEnvelope { variation?: string; systemPrompt?: string; response: string; } export declare class Oneshot { private options; private provider; constructor(options: OneshotOptions, provider: AIProvider); /** * Orchestrates reading the prompt, combining with system prompt, * iterating variations, and collecting responses. */ process(): Promise<ResponseEnvelope[]>; }