openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
13 lines (12 loc) • 623 B
TypeScript
import { n as AcpRuntimeError, r as AcpRuntimeErrorCode } from "./errors-4NrSl2dh.js";
//#region packages/acp-core/src/runtime/error-text.d.ts
/** Formats ACP runtime errors with the operator next-step hint attached when known. */
declare function formatAcpRuntimeErrorText(error: AcpRuntimeError): string;
/** Normalizes unknown failures into ACP runtime error text for user-facing surfaces. */
declare function toAcpRuntimeErrorText(params: {
error: unknown;
fallbackCode: AcpRuntimeErrorCode;
fallbackMessage: string;
}): string;
//#endregion
export { toAcpRuntimeErrorText as n, formatAcpRuntimeErrorText as t };