UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

32 lines • 1.28 kB
/** * 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. */ /** Hard caps — per-call params clamp to these regardless of what the LLM asks for. */ export const 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, }; export function resolveToolpackOptions(options) { return { previewChars: options?.previewChars ?? 160, sliceMaxDepth: options?.sliceMaxDepth ?? 6, sliceMaxNodes: options?.sliceMaxNodes ?? 25, valueMaxChars: options?.valueMaxChars ?? 2000, }; } //# sourceMappingURL=types.js.map