agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
21 lines (20 loc) • 1.06 kB
TypeScript
/**
* NoOpCacheStrategy — for a provider that declares no prompt caching
* (`LLMProvider.promptCaching` absent or undefined for this model): Mock, Ollama,
* any adapter that has not said, or an intentional opt-out.
*
* Returns the request unchanged and reports *not applicable* — never a zero.
* Chosen by `cacheStrategyFor` when the declaration is absent; one shared
* instance serves every such provider (it holds no state).
*/
import type { CacheMarker, CacheMetrics, CacheStrategy, CacheStrategyContext, CacheUsage } from '../types.js';
import { type Claim } from '../../lib/claim/claim.js';
import type { LLMRequest } from '../../provider-contract/types.js';
export declare class NoOpCacheStrategy implements CacheStrategy {
readonly name = "none";
prepareRequest(req: LLMRequest, _candidates: readonly CacheMarker[], _ctx: CacheStrategyContext): Promise<{
readonly request: LLMRequest;
readonly markersApplied: readonly CacheMarker[];
}>;
extractMetrics(_usage: CacheUsage | undefined): Claim<CacheMetrics>;
}