UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

17 lines (16 loc) • 767 B
/** * EvalRecorder — forwards `agentfootprint.eval.*` emits to the dispatcher. * * Pattern: Factory over EmitBridge. * Role: Bridges consumer-emitted `eval.score` + `eval.threshold_crossed` * events to typed listeners. Evaluation is a consumer concern * (LLM-based grading, heuristic checks, reference-output diffs), * so the library only provides transport — not any built-in * evaluators. * Emits: agentfootprint.eval.score / eval.threshold_crossed */ import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js'; export type EvalRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & { readonly id?: string; }; export declare function evalRecorder(options: EvalRecorderOptions): EmitBridge;