UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

26 lines • 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findingsInstruction = void 0; /** The library's immutable findings frame: cacheable by default, not an app cache request. */ const defineInstruction_js_1 = require("../../../injection-engine/factories/defineInstruction.js"); const reserved_js_1 = require("./reserved.js"); function findingsInstruction(contingent, quoteFacts) { const instruction = (0, defineInstruction_js_1.defineInstruction)({ id: reserved_js_1.FINDINGS_INSTRUCTION_ID, activeWhen: () => true, cache: 'always', prompt: (0, reserved_js_1.findingsInstructionFor)({ contingent }) + (quoteFacts ? '\nWhen answering, copy values exactly from the facts assertions or a served tool result. Treat evidenceRefs as unsettled, omitted entries as unknown, and collapsed results as tickets without data. Never invent a value.' : ''), }); return Object.freeze({ ...instruction, metadata: Object.freeze({ ...instruction.metadata, cachePolicySource: 'default', }), }); } exports.findingsInstruction = findingsInstruction; //# sourceMappingURL=instruction.js.map