ai-functions
Version:
A powerful TypeScript library for building AI-powered applications with template literals and structured outputs
7 lines • 360 B
TypeScript
import { SimpleSchema, AIFunctionOptions } from '@/types';
export type AIFunction<T extends SimpleSchema> = (input: any) => Promise<any>;
export type AIFunctionCreator = <T extends SimpleSchema>(schema: T, options?: AIFunctionOptions) => AIFunction<T>;
export type AIProxyHandler = {
[key: string]: AIFunctionCreator;
};
//# sourceMappingURL=types.d.ts.map