selvedge
Version:
A type-safe, declarative DSL for building robust, composable LLM prompts and programs in TypeScript. Selvedge simplifies prompt engineering, structured output, and multi-model orchestration.
21 lines • 729 B
TypeScript
/**
* Example generation utilities for Zod schemas
*
* This module provides functions to generate example values from Zod schemas.
*/
import * as z from 'zod';
/**
* Generate an example value from a Zod schema
*
* @param schema - The schema to generate an example for
* @returns An example value that matches the schema
*/
export declare function generateExampleFromSchema(schema: z.ZodType<any>): any;
/**
* Generate a formatted JSON example string from a schema
*
* @param schema - The schema to generate an example for
* @returns A formatted JSON string representing an example value
*/
export declare function generateJsonExampleFromSchema(schema: z.ZodType<any>): string;
//# sourceMappingURL=examples.d.ts.map