agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
25 lines • 1.1 kB
JavaScript
/**
* Cache layer — public types.
*
* Three layers, each with one responsibility:
*
* 1. CONSUMER DSL — `CachePolicy` field on every injection factory.
* Declarative, like GraphQL schema input. Says WHAT should be
* cacheable. Examples: `cache: 'always'`, `cache: 'while-active'`.
*
* 2. AGNOSTIC MARKERS — `CacheMarker[]` produced by the
* `CacheDecision` subflow at runtime. Provider-independent
* identification of "cacheable prefix in field X up to index Y".
*
* 3. STRATEGY — one `CacheStrategy` per CAPABILITY, chosen from what the
* provider DECLARES (`LLMProvider.promptCaching`), never from its name:
* explicit breakpoints, automatic prefix caching, or none. Decides
* which markers reach the request AND reads cache metrics off the
* port usage. The adapter owns the wire format.
*
* The interfaces are read-only / immutable by convention. Strategies
* MUST be stateless across runs; per-run state lives in the
* `CacheStrategyContext` passed into `prepareRequest`.
*/
export {};
//# sourceMappingURL=types.js.map