Class EmergentAgentJudge

Strict LLM-as-judge gate for synthesized agent specs.

Constructed once per agency strategy execution; reused across multiple spawn_specialist calls. Stateless aside from the immutable config.

Example

const judge = new EmergentAgentJudge({
judgeModel: 'gpt-4o-mini',
generateText: async (model, prompt) => callLlm(model, prompt),
});

const verdict = await judge.reviewAgent(spec);
if (!verdict.approved) {
return { success: false, data: `Judge rejected: ${verdict.reason}` };
}

Constructors

Methods

Constructors

Methods