UNPKG

agentfootprint

Version:

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

15 lines (14 loc) • 937 B
/** The standalone prose door: observe the terminal model answer without owning * its delivery. Native dispatch records are evidence; answer strings never are. */ import type { TypedScope } from 'footprintjs'; import type { ResolvedNegativeClaimPhrases } from '../../../integrity/negative-claim/phrases.js'; import type { AgentState } from '../types.js'; import type { RouteBranch } from '../stages/route.js'; /** After all terminal routing/transforms, before assessment and conversation * capture. No correction, schema parser invocation, answer rewrite or verdict. */ export declare function withNegativeProse(decide: (scope: TypedScope<AgentState>) => RouteBranch | Promise<RouteBranch>, options: { readonly runId: () => string; readonly hasOutstandingConsent: () => boolean; readonly structured: boolean; readonly phrases?: ResolvedNegativeClaimPhrases; }): (scope: TypedScope<AgentState>) => Promise<RouteBranch>;