Interface EmergentJudgeConfig

Configuration for the EmergentJudge.

All LLM interaction is abstracted behind the generateText callback, making the judge model-agnostic and easily testable with mocks.

interface EmergentJudgeConfig {
    judgeModel: string;
    promotionModel: string;
    generateText: ((model, prompt) => Promise<string>);
}

Properties

judgeModel: string

Model ID used for the single-pass creation review. Should be a fast, cost-efficient model since correctness is primarily validated through test cases.

Example

"gpt-4o-mini"
promotionModel: string

Model ID used by both reviewers in the promotion panel. Should be a more capable model than judgeModel since promotion decisions are higher-stakes.

Example

"gpt-4o"
generateText: ((model, prompt) => Promise<string>)

Callback that invokes an LLM to generate text from a prompt. The judge calls this for creation reviews and promotion panels.

Type declaration

    • (model, prompt): Promise<string>
    • Parameters

      • model: string

        The model ID to use for generation.

      • prompt: string

        The full prompt string to send to the LLM.

      Returns Promise<string>

Returns

The raw text response from the LLM.