agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
18 lines (17 loc) • 835 B
TypeScript
/**
* MemoryRecorder — forwards `agentfootprint.memory.*` emits to the dispatcher.
*
* Pattern: Factory over EmitBridge.
* Role: Bridges memory-layer events (strategy_applied, attached,
* detached, written) emitted by consumer memory adapters.
* The library does not ship a memory implementation; consumers
* plug in their own store and emit these events where relevant
* (e.g., before/after sliding-window summarization).
* Emits: agentfootprint.memory.strategy_applied / attached /
* detached / written
*/
import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js';
export type MemoryRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & {
readonly id?: string;
};
export declare function memoryRecorder(options: MemoryRecorderOptions): EmitBridge;