ai-functions
Version:
A powerful TypeScript library for building AI-powered applications with template literals and structured outputs
25 lines • 690 B
TypeScript
import { SimpleSchema } from './schema';
import { Model } from './model';
export type BaseOptions<T extends SimpleSchema> = {
model?: Model;
schema: T;
prompt?: string;
system?: string;
stream?: boolean;
seed?: number;
temperature?: number;
maxTokens?: number;
};
export type GenerateObjectOptions<T extends SimpleSchema> = BaseOptions<T> & {
output?: 'single' | 'array';
};
export type StreamObjectOptions<T extends SimpleSchema> = BaseOptions<T>;
export type AIFunctionOptions = {
stream?: boolean;
system?: string;
model?: Model;
seed?: number;
temperature?: number;
maxTokens?: number;
};
//# sourceMappingURL=options.d.ts.map