UNPKG

agentfootprint

Version:

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

33 lines • 1.96 kB
/** * Row "How sure" — what the record holds about how sure the answer is, side by * side: * - the whole-answer standing, FIRST: the one fold * (`core/agent/assessment/assess.ts` · `assessAnswer`) over the run's * committed state — known · consistent with the record · not sure (with the * reasons) · ask · not assessed — never read from this recording's events, * and never "known" from silence. The lines below stay facts beside it; the * standing is the only verdict, and it is the fold's, not this row's. The * one thing this row settles FIRST, from the events it may read: a record * that shows no answer (no `turn_end`) and no pause gets no standing at all * — there is no answer to rate; * - the model's pre-call expectation (`findings.declared`) — "how useful it * expected the result to be", never a confidence — and, beside it, the * call's outcome as its own fact (a declared absence can BE the direct, * useful answer, so no "instead" joins the two); * - the evidence check (the LAST `agent.evidence_checked` of the answering * iteration). `lookedUp` splits looked-up values from exempt ones; a run * recorded before it gets the unsplit line, which makes no count claim. The * event slices `unsupported` at 12, so a full list says "at least". */ import type { AnswerFacts, EvidenceFact, AccountFact, Sentence } from '../types.js'; import { type ReadContext } from './common.js'; import { type CallsRead } from './calls.js'; /** A flagged value is a name or a number from the answer; longer is clipped. */ export declare const FLAGGED_VALUE_CHARS = 200; export interface HowSureRead { readonly lines: readonly Sentence[]; readonly evidence: AccountFact<EvidenceFact>; readonly standing: AnswerFacts['standing']; } export declare function readHowSure(ctx: ReadContext, calls: CallsRead): HowSureRead; //# sourceMappingURL=howSure.d.ts.map