UNPKG

@ts-dspy/core

Version:

Core library for building type-safe LLM applications with structured input/output signatures, automatic validation, and reasoning patterns within TypeScript

16 lines 729 B
import { Signature } from './signature'; import { Prediction } from './prediction'; import { ILanguageModel } from '../types/language-model'; export declare abstract class Module { protected lm: ILanguageModel; protected signature?: typeof Signature | string; protected _compiled: boolean; constructor(signature?: typeof Signature | string, lm?: ILanguageModel); abstract forward(inputs: Record<string, any>): Promise<Prediction>; __call__(inputs: Record<string, any>): Promise<Prediction>; call(inputs: Record<string, any>): Promise<Prediction>; save(path: string): Promise<void>; static load(path: string): Promise<Module>; get compiled(): boolean; } //# sourceMappingURL=module.d.ts.map