agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
36 lines • 2.21 kB
JavaScript
/**
* trace-toolpack — RFC-003 Part C: the introspection toolpack.
*
* footprintjs trace evidence exposed as TOOLS an LLM calls: a debugging
* model navigates a COMPLETED run's evidence by runtimeStageIds instead of
* reading dumps. Bounded, honest (⚠ markers), redaction-respecting.
*
* Three doors over the same evidence:
* - `traceToolpack` the raw Tool[] (mount anywhere / drive scripted)
* - `traceDebugAgent` the DEDICATED conversational debugger (separate
* session, any provider — cheap models welcome)
* - `.selfExplain()` the IN-CONVERSATION door on the Agent builder
* (skill-gated, late-bound to the agent's own
* previous completed run; inline or delegate mode)
*
* …and one way IN for a run that already finished: `openRecording` turns a
* saved `recordRun` bundle back into artifacts, so last Tuesday's run is
* as navigable as this one.
*/
export { callTraceTool, traceToolpack, TRACE_TOOL_NAMES } from './traceToolpack.js';
// `missingArtifactMessage` is deliberately NOT re-exported: it is the lazy
// pack's own answer for a tool whose optional evidence this run lacks, and a
// consumer has no call to construct one.
export { lazyTraceToolpack, NO_COMPLETED_RUN_MESSAGE } from './lazyToolpack.js';
export { openRecording } from './openRecording.js';
export { traceCauseTools } from './causeTools.js';
export { readStoredCauseArtifacts } from './storedCause.js';
// The record a TOOL keeps of its own run — what `inspect_tool_run` opens.
// `INNER_RUN_RECORDS` / `innerRunsOf` are the join key between a Tool and
// its store; `innerRunStore` / `mergeInnerRuns` exist for consumers wiring
// a chart tool into artifacts by hand (the Agent builder does it for you).
export { DEFAULT_INNER_RUN_LIMIT, INNER_RUN_RECORDS, innerRunStore, innerRunsOf, mergeInnerRuns, } from '../core/innerRunRecords.js';
export { traceDebugAgent } from './traceDebugAgent.js';
export { buildSelfExplainSkill, buildSelfExplainToolProvider, SelfExplainBinding, SELF_EXPLAIN_MAX_EVENTS, } from './selfExplain.js';
export { TOOLPACK_HARD_CAPS, } from './types.js';
//# sourceMappingURL=index.js.map