agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
10 lines (9 loc) • 571 B
TypeScript
/** Private transport boundary; not a replay event or a provider capability. */
import type { LLMCallHooks, LLMRequest } from './types.js';
/** Attach a run-local observer without adding a public/model-facing hook. */
export declare function observeRequests(hooks: LLMCallHooks, observer: (request: LLMRequest) => void): LLMCallHooks;
/** A leaf owns these hooks only until its promise/iterator settles. */
export declare function requestAttempt(hooks: LLMCallHooks | undefined, request: LLMRequest): {
readonly hooks: LLMCallHooks | undefined;
close(): void;
};