UNPKG

agentfootprint

Version:

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

20 lines (19 loc) • 968 B
/** * Row "You asked" — the question as the record holds it. * * `turn_start.userPrompt` is the text AFTER the input middleware chain * (`stages/seed.ts` · `buildSeedStage` seeds `verdict.content`). It is the * person's own words only when no input decision changed it; otherwise it is the * app's version (voucher `app`) and the raw words are said to be missing — never * reconstructed. A resumed leg has no `turn_start` (seed does not re-run); the * run's `userMessage` is then quoted, vouched by the library. A question the * record keeps out (a redaction policy's placeholder) is said to be kept out — * never "not recorded", which would deny it was asked. */ import type { AccountFact, Sentence } from '../types.js'; import { type ReadContext } from './common.js'; export interface AskedRead { readonly question: AccountFact<string>; readonly lines: readonly Sentence[]; } export declare function readAsked(ctx: ReadContext): AskedRead;