/** * Evaluate whether a goal condition is satisfied, given the conversation so far. */ import type { GoalModelConfig } from './config.js'; import { type GoalModelRegistry } from './llm.js'; export interface GoalVerdict { ok: boolean; impossible: boolean; reason: string; } export interface EvaluateOptions { registry: GoalModelRegistry; modelConfig: GoalModelConfig; condition: string; transcript: string; /** Text-bearing messages dropped to fit the cap; surfaced to the evaluator. */ omittedCount?: number; signal?: AbortSignal; } /** * Returns a verdict, or null if the model is unavailable / the call failed. * A malformed model response is treated conservatively as "not yet met" rather * than null, so the engine keeps working instead of silently giving up. */ export declare function evaluateCondition(opts: EvaluateOptions): Promise; /** Parse the JSON verdict leniently; unparseable output → conservative "not yet". */ export declare function parseVerdict(raw: string): GoalVerdict; //# sourceMappingURL=evaluate.d.ts.map