agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
14 lines (13 loc) • 655 B
TypeScript
/** Existing collapsed-result protocol, shared without importing the ledger renderer. */
import type { Standing } from './types.js';
/** The ticket a collapsed tool message carries instead of its result. */
export interface CollapsedToolResult {
/** Always `true`. The field a consumer branches on. */
readonly collapsed: true;
readonly standing: Standing;
readonly toolCallId: string;
/** The placement ref when the collapsed result was placed. */
readonly ref?: string;
}
/** Type guard for a consumer reading a served tool message. */
export declare function isCollapsedToolResult(value: unknown): value is CollapsedToolResult;