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 • 1.47 kB
JavaScript
;
/**
* Trace toolpack types — RFC-003 Part C (the introspection toolpack).
*
* Pattern: artifact bag — everything a debugging LLM needs to navigate a
* COMPLETED run, captured once and handed to `traceToolpack()`.
* Role: Input contract. The toolpack never re-runs anything; it serves
* bounded, id-addressed views over these frozen artifacts.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveToolpackOptions = exports.TOOLPACK_HARD_CAPS = void 0;
/** Hard caps — per-call params clamp to these regardless of what the LLM asks for. */
exports.TOOLPACK_HARD_CAPS = {
sliceMaxDepth: 20,
sliceMaxNodes: 100,
valueMaxChars: 8000,
narrativeMaxLines: 200,
/** `find_in_trace` hits per call — a search is a pointer list, not a dump. */
findMaxHits: 25,
/**
* `find_context_errors` findings per call. Findings are deduplicated at
* filing time, so a run rarely has many — and a run that does has a
* systemic problem the first page already shows.
*/
contextErrorsMax: 25,
};
function resolveToolpackOptions(options) {
return {
previewChars: options?.previewChars ?? 160,
sliceMaxDepth: options?.sliceMaxDepth ?? 6,
sliceMaxNodes: options?.sliceMaxNodes ?? 25,
valueMaxChars: options?.valueMaxChars ?? 2000,
};
}
exports.resolveToolpackOptions = resolveToolpackOptions;
//# sourceMappingURL=types.js.map