agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
16 lines (15 loc) • 750 B
TypeScript
/**
* AgentRecorder — forwards `agentfootprint.agent.*` emits to the dispatcher.
*
* Pattern: Factory (GoF) returning an EmitBridge instance.
* Role: Convenience constructor for the agent-lifecycle bridge recorder.
* Same mechanics as StreamRecorder, scoped to agent.* events
* (turns + iterations + route decisions + handoffs).
* Emits: agentfootprint.agent.turn_start / turn_end / iteration_start /
* iteration_end / route_decided / handoff
*/
import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js';
export type AgentRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & {
readonly id?: string;
};
export declare function agentRecorder(options: AgentRecorderOptions): EmitBridge;