gepa-ts
Version:
TypeScript implementation of GEPA (Gradient-free Evolution of Prompts and Agents) - Complete port with 100% feature parity
29 lines • 1.09 kB
TypeScript
import { ComponentMap, DataInst, LanguageModel, LoggerProtocol } from './types/index.js';
import { GEPAAdapter } from './core/adapter.js';
import { GEPAResult } from './core/result.js';
export interface OptimizeConfig<D = DataInst> {
seedCandidate: ComponentMap;
trainset: D[];
valset?: D[];
adapter?: GEPAAdapter<D>;
taskLM?: string | ((prompt: string) => Promise<string> | string);
reflectionLM?: LanguageModel | string;
candidateSelectionStrategy?: 'pareto' | 'current-best';
skipPerfectScore?: boolean;
reflectionMinibatchSize?: number;
perfectScore?: number;
useMerge?: boolean;
maxMergeInvocations?: number;
maxMetricCalls: number;
logger?: LoggerProtocol;
runDir: string | null;
useWandB?: boolean;
wandBApiKey?: string;
wandBInitKwargs?: Record<string, any>;
trackBestOutputs?: boolean;
displayProgressBar?: boolean;
seed?: number;
raiseOnException?: boolean;
}
export declare function optimize<D = DataInst>(config: OptimizeConfig<D>): Promise<GEPAResult>;
//# sourceMappingURL=api.d.ts.map