UNPKG

agentfootprint

Version:

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

42 lines • 2.31 kB
"use strict"; /** * agentfootprint/context — how the model's context gets assembled. * * The injection engine: one `Injection` type, the sugar factories that build * one, and the engine subflow that resolves them into the three slots a * request is made of (system prompt, messages, tools). * Also exposes opt-in outer JSON field meanings and their model guidance; * callers include it through existing system or steering configuration. * * Named for the job rather than the machine — through 8.x this was also * reachable at `agentfootprint/injection-engine`, which described our * implementation instead of your task. That path was removed in 9.0.0. * * @example * ```ts * import { defineInjection, type Injection } from 'agentfootprint/context'; * ``` */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveEvidenceNeed = exports.contextContractForModel = exports.CONTEXT_FIELD_MEANINGS = void 0; __exportStar(require("../injection-engine.js"), exports); var index_js_1 = require("../lib/context-contract/index.js"); Object.defineProperty(exports, "CONTEXT_FIELD_MEANINGS", { enumerable: true, get: function () { return index_js_1.CONTEXT_FIELD_MEANINGS; } }); Object.defineProperty(exports, "contextContractForModel", { enumerable: true, get: function () { return index_js_1.contextContractForModel; } }); var evidence_navigation_js_1 = require("../lib/context-contract/evidence-navigation.js"); Object.defineProperty(exports, "resolveEvidenceNeed", { enumerable: true, get: function () { return evidence_navigation_js_1.resolveEvidenceNeed; } }); //# sourceMappingURL=context.js.map