UNPKG

arvo-event-handler

Version:

A complete set of orthogonal event handler and orchestration primitives for Arvo based applications, featuring declarative state machines (XState), imperative resumables for agentic workflows, contract-based routing, OpenTelemetry observability, and in-me

15 lines (14 loc) 628 B
import type { ArvoEventHandlerOpenTelemetryOptions } from '../types'; import type { ExecuteMachineInput, ExecuteMachineOutput } from './types'; /** * Interface defining a machine execution engine. */ export interface IMachineExectionEngine { /** * Executes a state machine and processes events. * @param param - Input parameters for machine execution * @param opentelemetry - Telemetry configuration options * @returns Machine execution results including state and events */ execute: (param: ExecuteMachineInput, opentelemetry: ArvoEventHandlerOpenTelemetryOptions) => ExecuteMachineOutput; }