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) • 851 B
TypeScript
import type { CauseGraph } from 'foottrace/cause';
import type { SnapshotCapture } from './causeCapture.js';
import type { StoredCauseAdmission, StoredCauseArtifacts } from './storedCauseTypes.js';
export type StoredCauseAssessment = {
readonly kind: 'none';
} | {
readonly kind: 'invalid';
} | {
readonly kind: 'stored';
readonly capture: SnapshotCapture;
readonly admission: StoredCauseAdmission;
};
/** Internal issuer. This identity is intentionally not serializable or shared across module instances. */
export declare function bindStoredCause(graph: CauseGraph, capture: SnapshotCapture, history: object, version: 1 | 2): StoredCauseArtifacts;
/** Read identity, never the value of a caller's assessment property or an attached getter. */
export declare function storedCauseAssessment(cause: unknown): StoredCauseAssessment;