agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
10 lines (9 loc) • 574 B
TypeScript
/** Fixed refusal codes: no reference, callback failure, payload or signal reason is echoed. */
export type ArtifactDetailErrorCode = 'ERR_ARTIFACT_DETAIL_INVALID' | 'ERR_ARTIFACT_DETAIL_UNAVAILABLE' | 'ERR_ARTIFACT_DETAIL_CANCELLED';
/** A bounded detail request was malformed, could not be admitted, or was cancelled. */
export declare class ArtifactDetailError extends Error {
readonly code: ArtifactDetailErrorCode;
constructor(code: ArtifactDetailErrorCode);
}
export declare function invalidDetail(): never;
export declare function unavailableDetail(): never;