UNPKG

@yuxilabs/gptp-core

Version:

Core validation, formatting and execution logic for the GPTP file format.

19 lines 665 B
import { formatters } from '@/devtools/cli/helpers/formatting/registry'; type SupportedFormat = keyof typeof formatters; export interface FormatOptions { outputFormat?: SupportedFormat; outputSchema?: any; } /** * Formats the model output according to the prompt's declared output format. */ export declare function formatOutput(rawOutput: any, options: FormatOptions): string; /** * Formats the output of a prompt according to the prompt's own declared format. */ export declare function formatPrompt(rawOutput: any, prompt: { outputFormat?: SupportedFormat; outputSchema?: any; }): string; export {}; //# sourceMappingURL=formatPrompt.d.ts.map