agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
16 lines (15 loc) • 838 B
TypeScript
/** Bounded diagnostic beside model declarations; never source authority or model testimony. */
import type { DeclaredOn } from './types.js';
export interface ReferenceRefusalRow {
readonly kind: 'reference-refusal';
readonly declaredOn: DeclaredOn;
readonly iteration: number;
readonly reason: 'malformed' | 'unidentified';
readonly attempted?: string;
readonly truncated?: true;
readonly turn?: number;
}
/** Serialized text is diagnostic only: a cut is explicit and never becomes an identifier. */
export declare function referenceRefusalRow(declaredOn: DeclaredOn, iteration: number, malformed: boolean, attempted?: unknown): ReferenceRefusalRow;
/** Closed saved-diagnostic shape; restoring it never grants a reference. */
export declare function referenceRefusalRowIsWellFormed(value: unknown): boolean;