UNPKG

agentfootprint

Version:

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

28 lines • 1.2 kB
"use strict"; /** * Causal memory — types. * * A `SnapshotEntry` is the value stored in a Causal `MemoryStore`. It * captures one agent run's "what happened and why" so future turns can * answer follow-up questions ("why did you reject this?") with EXACT * past facts instead of LLM reconstruction. * * Differentiator: footprintjs's `decide()`/`select()` already capture * decision evidence as first-class events during traversal — we just * persist them. Other libraries can't do this without rebuilding their * core to surface decision evidence. * * Stored as `MemoryEntry<SnapshotEntry>` so the existing store layer * (`MemoryStore`, `InMemoryStore`, future Redis/Dynamo/Postgres * adapters) handles persistence + identity isolation + TTL + vector * search out of the box. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_TOOL_RESULT_PREVIEW_LEN = void 0; /** * Default truncation when serializing tool results into the snapshot. * Keeps snapshot entries small enough to fit many in context during * retrieval. Override per-call via `writeSnapshot` config. */ exports.DEFAULT_TOOL_RESULT_PREVIEW_LEN = 500; //# sourceMappingURL=types.js.map