agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
28 lines • 1.52 kB
JavaScript
;
/**
* middleware — PUBLIC barrel. The governance chain family.
*
* Two chains, one vocabulary:
*
* `.toolMiddleware(...)` wraps every tool dispatch
* `.messageMiddleware(...)` wraps the message boundary — the input
* before the model sees it, the output before
* the caller receives it
*
* Three verbs: `allow`, `deny`, `ask`. There is no fourth, and in
* particular there is no way to return a result — see `types.ts`.
*
* A tool link may speak twice: `onToolCall` about the call, `onToolResult`
* about the result. The chain is walked forwards for the first and backwards for the
* second, so the first-declared link has the first word going in and the last
* word coming out.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageDeniedError = exports.deny = exports.ask = exports.allow = void 0;
var outcomes_js_1 = require("./outcomes.js");
Object.defineProperty(exports, "allow", { enumerable: true, get: function () { return outcomes_js_1.allow; } });
Object.defineProperty(exports, "ask", { enumerable: true, get: function () { return outcomes_js_1.ask; } });
Object.defineProperty(exports, "deny", { enumerable: true, get: function () { return outcomes_js_1.deny; } });
var errors_js_1 = require("./errors.js");
Object.defineProperty(exports, "MessageDeniedError", { enumerable: true, get: function () { return errors_js_1.MessageDeniedError; } });
//# sourceMappingURL=index.js.map