gepa-spo
Version:
Genetic-Pareto prompt optimizer to evolve system prompts from a few rollouts with modular support and intelligent crossover
12 lines (11 loc) • 337 B
TypeScript
import type { Ucb1State } from './types.js';
/** UCB1 bandit to select strategy IDs by historical uplift */
export declare class UCB1 {
private t;
private stats;
constructor(ids: string[]);
pick(): string;
update(id: string, reward: number): void;
serialize(): Ucb1State;
static from(obj: Ucb1State): UCB1;
}