agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
19 lines (18 loc) • 893 B
TypeScript
/**
* ToolsRecorder — forwards `agentfootprint.tools.*` emits to the dispatcher.
*
* Pattern: Factory over EmitBridge.
* Role: Bridges tool-domain events. Today: discovery_failed (emitted by
* buildToolsSlot when an external `ToolProvider.list(ctx)` throws
* or rejects). The other tools.* events (offered/activated/
* deactivated) are declared in the registry for consumer code
* that wants to emit them; the same prefix bridge forwards all
* of them.
* Emits: agentfootprint.tools.offered / tools.activated / tools.deactivated
* / tools.discovery_failed
*/
import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js';
export type ToolsRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & {
readonly id?: string;
};
export declare function toolsRecorder(options: ToolsRecorderOptions): EmitBridge;