UNPKG

agentfootprint

Version:

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

12 lines (11 loc) • 759 B
/** Durable metadata for a provider-authored assistant turn, copied at its writer. */ import type { LLMMessage } from '../../provider-contract/types.js'; import type { AgentState } from './types.js'; /** * The adapter owns the evidence; core only carries it alongside the text it * actually delivered. Presence is checked without a tracked read, so a run on * a provider with no replay evidence gains no phantom context source. Thinking * joins this carrier only when the provider supplied replay evidence; legacy * message writers retain their existing thinking behaviour otherwise. */ export declare function assistantReplayFields(state: Pick<Partial<AgentState>, 'llmLatestReplay' | 'thinkingBlocks'>): Pick<LLMMessage, 'replay' | 'thinkingBlocks'>;