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 (10 loc) • 563 B
TypeScript
/**
* Validate JavaScript option bags against the current declaration, before a
* factory does any work. The factory owns its vocabulary; this helper owns
* rejection. Unknown frontmatter is deliberately a different contract.
*
* Inspect property names, not values: an unknown getter must not run just to
* explain a typo. Include inherited declarations so an option cannot escape
* validation by moving onto a custom prototype.
*/
export declare function assertKnownOptions(where: string, options: object, allowed: Readonly<Record<string, true>>): void;