UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

41 lines 1.67 kB
import type { Emitter, ExecutionGraph, SerializedStepFlowEntry, StepResult, Mastra, ExecutionEngineOptions } from '../../index.js'; import type { RuntimeContext } from '../../di/index.js'; import { ExecutionEngine } from '../../workflows/execution-engine.js'; import type { WorkflowEventProcessor } from './workflow-event-processor/index.js'; export declare class EventedExecutionEngine extends ExecutionEngine { protected eventProcessor: WorkflowEventProcessor; constructor({ mastra, eventProcessor, options, }: { mastra?: Mastra; eventProcessor: WorkflowEventProcessor; options: ExecutionEngineOptions; }); __registerMastra(mastra: Mastra): void; /** * Executes a workflow run with the provided execution graph and input * @param graph The execution graph to execute * @param input The input data for the workflow * @returns A promise that resolves to the workflow output */ execute<TInput, TOutput>(params: { workflowId: string; runId: string; graph: ExecutionGraph; serializedStepGraph: SerializedStepFlowEntry[]; input?: TInput; resume?: { steps: string[]; stepResults: Record<string, StepResult<any, any, any, any>>; resumePayload: any; resumePath: number[]; }; emitter: Emitter; runtimeContext: RuntimeContext; retryConfig?: { attempts?: number; delay?: number; }; abortController: AbortController; format?: 'legacy' | 'vnext' | undefined; }): Promise<TOutput>; } //# sourceMappingURL=execution-engine.d.ts.map