UNPKG

agentfootprint

Version:

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

38 lines • 2.57 kB
"use strict"; /** * Default strategies — the four "shipped in core" sinks. * * `consoleObservability` — print events to console * `inMemorySinkCost` — accumulate cost ticks in a process-local buffer * `chatBubbleLiveStatus` — call a consumer-supplied line callback * `noopLens` — drop graph updates (zero-arg fallback) * * Vendor strategies (datadog, otel, agentcore, cloudwatch, …) ship as * separate subpaths with peer-dep on the vendor SDK. See * `docs/inspiration/strategy-everywhere.md` for the AWS-first roadmap. * * ───────────────────────────────────────────────────────────────── * Why defaults skip `validate()`: * * The optional `BaseStrategy.validate()` hook is the right place for * runtime config checks (API keys, endpoint reachability, peer-dep * presence). Defaults skip it by design — their inputs are TypeScript- * checked at construction, and they don't talk to a remote vendor that * might be misconfigured. * * Vendor strategies that DO talk to a remote (datadog, agentcore, * cloudwatch) MUST implement `validate()` per the New Relic panel * review — early-fail-with-useful-message beats silent zero-emission. * ───────────────────────────────────────────────────────────────── */ Object.defineProperty(exports, "__esModule", { value: true }); exports.noopLens = exports.chatBubbleLiveStatus = exports.inMemorySinkCost = exports.consoleObservability = void 0; var consoleObservability_js_1 = require("./consoleObservability.js"); Object.defineProperty(exports, "consoleObservability", { enumerable: true, get: function () { return consoleObservability_js_1.consoleObservability; } }); var inMemorySinkCost_js_1 = require("./inMemorySinkCost.js"); Object.defineProperty(exports, "inMemorySinkCost", { enumerable: true, get: function () { return inMemorySinkCost_js_1.inMemorySinkCost; } }); var chatBubbleLiveStatus_js_1 = require("./chatBubbleLiveStatus.js"); Object.defineProperty(exports, "chatBubbleLiveStatus", { enumerable: true, get: function () { return chatBubbleLiveStatus_js_1.chatBubbleLiveStatus; } }); var noopLens_js_1 = require("./noopLens.js"); Object.defineProperty(exports, "noopLens", { enumerable: true, get: function () { return noopLens_js_1.noopLens; } }); //# sourceMappingURL=index.js.map