agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
20 lines (19 loc) • 934 B
TypeScript
/**
* EmbeddingRecorder — forwards `agentfootprint.embedding.*` emits to the dispatcher.
*
* Pattern: Factory over EmitBridge.
* Role: Bridges the embedding domain — the two-phase cost model. Without a
* bridge an emit never reaches `agent.on(...)` no matter how correctly
* it is fired, which is the shape this domain was in until 8.9.0: it
* had a payload type, a registry entry and a `DomainWildcard` arm, and
* no way for the event to arrive.
* Emits: agentfootprint.embedding.generated
*
* Always-on and zero-cost: an agent with no memory pipeline embeds nothing and
* this bridge sees nothing.
*/
import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js';
export type EmbeddingRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & {
readonly id?: string;
};
export declare function embeddingRecorder(options: EmbeddingRecorderOptions): EmitBridge;