UNPKG

@mastra/core

Version:
17 lines • 1 kB
import type { AnySpan, EndSpanOptions, ErrorSpanOptions, SpanType } from '../observability/index.js'; import type { SpanTermination } from '../observability/types/index.js'; import type { StepTripwireInfo, WorkflowRunStatus } from './types.js'; /** @internal Classify the runtime's settled workflow result, after cancellation reconciliation. */ export declare function workflowTermination(result: { status: WorkflowRunStatus; error?: unknown; tripwire?: StepTripwireInfo; }, abortSignal?: AbortSignal): SpanTermination; /** Complete a live workflow span at its execution boundary. */ export declare function completeWorkflowSpan(span: AnySpan | undefined, completion: { end?: EndSpanOptions<SpanType>; error?: ErrorSpanOptions<SpanType>; }): void; /** @internal Work stopped by a parent cancellation is interrupted. */ export declare function workflowChildTermination(...args: Parameters<typeof workflowTermination>): SpanTermination; //# sourceMappingURL=execution-outcome.d.ts.map