agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
11 lines • 522 B
JavaScript
/**
* Private MemoryStore boundary rule. Capture once so the checked number is the
* one the adapter uses; defaults and provider-specific upper caps stay local.
*/
export function storeRequestLimit(value, option) {
if (value === undefined || (Number.isInteger(value) && value > 0))
return value;
const method = option === 'limit' ? 'list' : 'search';
throw new RangeError(`MemoryStore.${method}(): \`${option}\` must be a positive integer when provided.`);
}
//# sourceMappingURL=requestLimit.js.map