UNPKG

agentfootprint

Version:

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

15 lines • 767 B
import type { StageSnapshot } from 'footprintjs/advanced'; import type { TraceCauseArtifacts } from './causeTypes.js'; import type { TraceToolpackArtifacts } from './types.js'; /** The same three questions can read a graph directly or project a native snapshot. */ export type CauseContext = { readonly kind: 'graph'; readonly cause: TraceCauseArtifacts; } | { readonly kind: 'snapshot'; readonly artifacts: TraceToolpackArtifacts; readonly nodes: ReadonlyMap<string, StageSnapshot>; }; /** A saved assessment belongs only to graph-only serving, never a mixed snapshot bag. */ export declare function causeContextAssessment(context: CauseContext): import("./storedCauseBinding.js").StoredCauseAssessment; //# sourceMappingURL=causeContext.d.ts.map