UNPKG

ai-functions

Version:

A powerful TypeScript library for building AI-powered applications with template literals and structured outputs

11 lines 556 B
import { z } from 'zod'; export type ListStreamFunction = (strings: string[] | TemplateStringsArray, ...values: any[]) => AsyncIterableIterator<any>; export type ListAwaitFunction = (strings: string[] | TemplateStringsArray, ...values: any[]) => Promise<string[]>; export type ListSchema = z.ZodObject<{ item: z.ZodString; }>; export type ListArraySchema = z.ZodObject<{ items: z.ZodArray<z.ZodString>; }>; export type ListPromptGenerator = (strings: string[] | TemplateStringsArray, ...values: any[]) => string; //# sourceMappingURL=types.d.ts.map