UNPKG

agentfootprint

Version:

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

29 lines (28 loc) • 1.21 kB
/** * `noopLens()` — default LensStrategy. * * Pattern: Strategy. Wildcard fallback. Same role as `NoOpCacheStrategy`. * Role: Drops every update. Used when no Lens vendor strategy is * configured AND the consumer hasn't supplied a callback. * Keeps `enable.lens()` callable without args without * throwing — important for the zero-arg HelloWorld pattern. * * Use when: * - You want the agent to run without a Lens UI (production * server-side, headless eval, batch jobs) * - Tier-1 of compose chains where you want the chain to compile * even if the real Lens strategy is conditional * * Don't use when: you actually want to see the StepGraph. Use * `lens-browser`, `lens-cli`, or `lens-jsonExport` from the * vendor-strategy subpaths once they ship in v2.12+. */ import type { LensStrategy, LensUpdate } from '../types.js'; export interface NoopLensOptions { /** * Optional callback called per update — useful for tests that want * to verify the strategy was wired without actually rendering. */ readonly onUpdate?: (update: LensUpdate) => void; } export declare function noopLens(opts?: NoopLensOptions): LensStrategy;