UNPKG

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) • 928 B
/** * CompositionRecorder — forwards `agentfootprint.composition.*` emits to the dispatcher. * * Pattern: Factory (GoF) returning an EmitBridge instance. * Role: Convenience constructor for the composition-domain bridge recorder. * Compositions (Sequence, Parallel, Conditional, Loop) typedEmit * composition.enter/exit/fork_start/branch_complete/merge_end/ * route_decided/iteration_start/iteration_exit from their internal * stages; this recorder observes via footprintjs's EmitRecorder * channel and re-dispatches with typed payloads + meta. * Emits: agentfootprint.composition.* */ import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js'; export type CompositionRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & { readonly id?: string; }; export declare function compositionRecorder(options: CompositionRecorderOptions): EmitBridge;