UNPKG

gepa-spo

Version:

Genetic-Pareto prompt optimizer to evolve system prompts from a few rollouts with modular support and intelligent crossover

8 lines (7 loc) 364 B
import type { ChatLLM } from './types.js'; export declare function buildJudgePrompt(rubric: string): string; /** Call the judge LLM to evaluate system+user+assistant => {score, feedback} */ export declare function judgeScore(chatLLM: ChatLLM, rubric: string, system: string, user: string, assistant: string): Promise<{ score: number; feedback: string; }>;