agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
17 lines • 936 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRequestRefusal = void 0;
/** Request-contract refusals are terminal, not provider availability failures. */
const forcedToolChoice_js_1 = require("./forcedToolChoice.js");
const nativeOutputSchema_js_1 = require("./nativeOutputSchema.js");
const errors_js_1 = require("../thinking/errors.js");
const replay_js_1 = require("../thinking/replay.js");
/** Deliberately narrow: unrelated application errors keep their existing policy. */
function isRequestRefusal(error) {
return (error instanceof forcedToolChoice_js_1.UnsupportedToolChoiceError ||
error instanceof nativeOutputSchema_js_1.UnsupportedNativeOutputError ||
error instanceof errors_js_1.UnsupportedThinkingError ||
error instanceof replay_js_1.UnsafeThinkingReplayError);
}
exports.isRequestRefusal = isRequestRefusal;
//# sourceMappingURL=requestRefusal.js.map