UNPKG

agentfootprint

Version:

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

13 lines (12 loc) • 682 B
/** Shared, fixed work allowance for one prose observation. Size limits alone * cannot bound overlapping names across many native reads and answer fields. */ export interface ProseWorkBudget { readonly charge: (units: number) => void; } /** Internal control flow, translated to the existing input-limit observation. */ export declare class ProseWorkLimit extends Error { } /** Tokens visited and characters prepared/compared share the same allowance. * The runtime shares one instance across all fields; pure callers default to * one per text. There is no process cache or application-configurable bypass. */ export declare function createProseWorkBudget(): ProseWorkBudget;