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 • 749 B
/** Request-contract refusals are terminal, not provider availability failures. */ import { UnsupportedToolChoiceError } from './forcedToolChoice.js'; import { UnsupportedNativeOutputError } from './nativeOutputSchema.js'; import { UnsupportedThinkingError } from '../thinking/errors.js'; import { UnsafeThinkingReplayError } from '../thinking/replay.js'; /** Deliberately narrow: unrelated application errors keep their existing policy. */ export function isRequestRefusal(error) { return (error instanceof UnsupportedToolChoiceError || error instanceof UnsupportedNativeOutputError || error instanceof UnsupportedThinkingError || error instanceof UnsafeThinkingReplayError); } //# sourceMappingURL=requestRefusal.js.map