@mastra/core
Version:
6 lines • 564 B
TypeScript
import type { SpanTermination, SpanTripwireContext } from './types/outcome.js';
/** @internal Classify explicit failure facts, including wrapped/serialized causes. Never match error-message text. */
export declare function executionFailureTermination(error: unknown, layer?: 'runtime_error' | 'model_error'): SpanTermination;
/** Link to the observer's diagnostics without copying its payload into the interrupted span. */
export declare function tripwireTermination(tripwire?: SpanTripwireContext): SpanTermination;
//# sourceMappingURL=execution-outcome.d.ts.map