@voltagent/core 2.5.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -9410,6 +9410,9 @@ declare class Agent {
9410
9410
  private executeWithModelFallback;
9411
9411
  private probeStreamStart;
9412
9412
  private cloneResultWithFullStream;
9413
+ private withProbedFullStream;
9414
+ private usesGetterBasedTeeingFullStream;
9415
+ private findPropertyDescriptor;
9413
9416
  private toAsyncIterableStream;
9414
9417
  private discardStream;
9415
9418
  /**
@@ -10050,6 +10053,26 @@ interface WorkflowStreamResult<RESULT_SCHEMA extends z.ZodTypeAny, RESUME_SCHEMA
10050
10053
  * Abort the workflow execution
10051
10054
  */
10052
10055
  abort: () => void;
10056
+ /**
10057
+ * Subscribe to run-level stream events without consuming the main async iterator.
10058
+ * Returns an unsubscribe function.
10059
+ */
10060
+ watch: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => () => void;
10061
+ /**
10062
+ * Async variant of watch() for compatibility with observer-based integrations.
10063
+ */
10064
+ watchAsync: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => Promise<() => void>;
10065
+ /**
10066
+ * Create a ReadableStream view over workflow events.
10067
+ */
10068
+ observeStream: () => ReadableStream<WorkflowStreamEvent>;
10069
+ /**
10070
+ * Compatibility surface for legacy stream consumers.
10071
+ */
10072
+ streamLegacy: () => {
10073
+ stream: ReadableStream<WorkflowStreamEvent>;
10074
+ getWorkflowState: () => ReturnType<Memory["getWorkflowState"]>;
10075
+ };
10053
10076
  }
10054
10077
  /**
10055
10078
  * Result returned when a workflow execution is started asynchronously
@@ -10721,11 +10744,15 @@ type InternalBaseWorkflowInputSchema = z.ZodTypeAny | BaseMessage | BaseMessage[
10721
10744
  * Context object for new execute API with helper functions
10722
10745
  * @private - INTERNAL USE ONLY
10723
10746
  */
10724
- interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10747
+ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10725
10748
  data: DATA;
10726
10749
  state: WorkflowStepState<INPUT>;
10727
10750
  getStepData: (stepId: string) => WorkflowStepData | undefined;
10751
+ getStepResult: <T = unknown>(stepId: string) => T | null;
10752
+ getInitData: <T = InternalExtractWorkflowInputData<INPUT>>() => T;
10728
10753
  suspend: (reason?: string, suspendData?: SUSPEND_DATA) => Promise<never>;
10754
+ bail: (result?: WORKFLOW_RESULT) => never;
10755
+ abort: () => never;
10729
10756
  resumeData?: RESUME_DATA;
10730
10757
  retryCount?: number;
10731
10758
  workflowState: WorkflowStateStore;
@@ -10746,7 +10773,7 @@ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10746
10773
  * Uses context-based API with data, state, and helper functions
10747
10774
  * @private - INTERNAL USE ONLY
10748
10775
  */
10749
- type InternalWorkflowFunc<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> = (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10776
+ type InternalWorkflowFunc<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> = (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>) => Promise<RESULT>;
10750
10777
  type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10751
10778
  /**
10752
10779
  * Unique identifier for the step
@@ -10770,7 +10797,7 @@ type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10770
10797
  * Base step interface for building new steps
10771
10798
  * @private - INTERNAL USE ONLY
10772
10799
  */
10773
- interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> {
10800
+ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10774
10801
  /**
10775
10802
  * Unique identifier for the step
10776
10803
  */
@@ -10812,13 +10839,13 @@ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DAT
10812
10839
  * @param context - The execution context containing data, state, and helpers
10813
10840
  * @returns The result of the step
10814
10841
  */
10815
- execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10842
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>) => Promise<RESULT>;
10816
10843
  }
10817
10844
  /**
10818
10845
  * Any step that can be accepted by the workflow
10819
10846
  * @private - INTERNAL USE ONLY
10820
10847
  */
10821
- type InternalAnyWorkflowStep<INPUT = DangerouslyAllowAny, DATA = DangerouslyAllowAny, RESULT = DangerouslyAllowAny, SUSPEND_DATA = DangerouslyAllowAny, RESUME_DATA = DangerouslyAllowAny> = InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> | Omit<InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA>, "type">;
10848
+ type InternalAnyWorkflowStep<INPUT = DangerouslyAllowAny, DATA = DangerouslyAllowAny, RESULT = DangerouslyAllowAny, SUSPEND_DATA = DangerouslyAllowAny, RESUME_DATA = DangerouslyAllowAny, WORKFLOW_RESULT = unknown> = InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT> | Omit<InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>, "type">;
10822
10849
  /**
10823
10850
  * Infer the result type from a list of steps
10824
10851
  * @private - INTERNAL USE ONLY
@@ -10868,7 +10895,7 @@ declare function andAgent<INPUT, DATA, SCHEMA extends AgentOutputSchema, RESULT
10868
10895
  name: string;
10869
10896
  purpose: string | null;
10870
10897
  agent: Agent;
10871
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
10898
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
10872
10899
  };
10873
10900
 
10874
10901
  interface WorkflowStepAgent<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, RESULT, any, any> {
@@ -11160,7 +11187,7 @@ declare function andWhen<INPUT, DATA, RESULT>({ condition, step, inputSchema, ou
11160
11187
  declare function andAll<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<InternalAnyWorkflowStep<INPUT, DATA, RESULT>> | WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT>>({ steps: inputSteps, ...config }: WorkflowStepParallelAllConfig<INPUT, DATA, RESULT, STEPS>): {
11161
11188
  type: "parallel-all";
11162
11189
  steps: InternalAnyWorkflowStep<INPUT, DATA, STEPS extends readonly InternalAnyWorkflowStep<INPUT, DATA, RESULT>[] ? InternalInferWorkflowStepsResult<STEPS> : STEPS extends WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> ? InternalInferWorkflowStepsResult<Awaited<ReturnType<STEPS>>> : never>[];
11163
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<STEPS extends readonly InternalAnyWorkflowStep<INPUT, DATA, RESULT>[] ? InternalInferWorkflowStepsResult<STEPS> : STEPS extends WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> ? InternalInferWorkflowStepsResult<Awaited<ReturnType<STEPS>>> : never>;
11190
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<STEPS extends readonly InternalAnyWorkflowStep<INPUT, DATA, RESULT>[] ? InternalInferWorkflowStepsResult<STEPS> : STEPS extends WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> ? InternalInferWorkflowStepsResult<Awaited<ReturnType<STEPS>>> : never>;
11164
11191
  id: string;
11165
11192
  name: string;
11166
11193
  purpose: string;
@@ -11217,7 +11244,7 @@ declare function andRace<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Intern
11217
11244
  }>): {
11218
11245
  type: "parallel-race";
11219
11246
  steps: InternalAnyWorkflowStep<INPUT, DATA, InternalInferWorkflowStepsResult<STEPS>[number]>[];
11220
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11247
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11221
11248
  id: string;
11222
11249
  name: string;
11223
11250
  purpose: string;
@@ -11328,7 +11355,7 @@ declare function andForEach<INPUT, DATA, ITEM, RESULT, MAP_DATA = ITEM>({ step,
11328
11355
  concurrency: number;
11329
11356
  items: WorkflowStepForEachItemsFunc<INPUT, DATA, ITEM> | undefined;
11330
11357
  map: WorkflowStepForEachMapFunc<INPUT, DATA, ITEM, MAP_DATA> | undefined;
11331
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT[]>;
11358
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT[]>;
11332
11359
  id: string;
11333
11360
  name: string;
11334
11361
  purpose: string;
@@ -11344,7 +11371,7 @@ declare function andBranch<INPUT, DATA, RESULT>({ branches, ...config }: Workflo
11344
11371
  condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
11345
11372
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
11346
11373
  }[];
11347
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<(RESULT | undefined)[]>;
11374
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<(RESULT | undefined)[]>;
11348
11375
  id: string;
11349
11376
  name: string;
11350
11377
  purpose: string;
@@ -11361,7 +11388,7 @@ declare function andDoWhile<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11361
11388
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11362
11389
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11363
11390
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11364
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11391
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11365
11392
  id: string;
11366
11393
  name: string;
11367
11394
  purpose: string;
@@ -11376,7 +11403,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11376
11403
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11377
11404
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11378
11405
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11379
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11406
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11380
11407
  id: string;
11381
11408
  name: string;
11382
11409
  purpose: string;
@@ -11389,7 +11416,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11389
11416
  declare function andMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>>({ map, ...config }: WorkflowStepMapConfig<INPUT, DATA, MAP>): {
11390
11417
  type: "map";
11391
11418
  map: MAP;
11392
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepMapResult<MAP>>;
11419
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<WorkflowStepMapResult<MAP>>;
11393
11420
  id: string;
11394
11421
  name: string;
11395
11422
  purpose: string;
package/dist/index.d.ts CHANGED
@@ -9410,6 +9410,9 @@ declare class Agent {
9410
9410
  private executeWithModelFallback;
9411
9411
  private probeStreamStart;
9412
9412
  private cloneResultWithFullStream;
9413
+ private withProbedFullStream;
9414
+ private usesGetterBasedTeeingFullStream;
9415
+ private findPropertyDescriptor;
9413
9416
  private toAsyncIterableStream;
9414
9417
  private discardStream;
9415
9418
  /**
@@ -10050,6 +10053,26 @@ interface WorkflowStreamResult<RESULT_SCHEMA extends z.ZodTypeAny, RESUME_SCHEMA
10050
10053
  * Abort the workflow execution
10051
10054
  */
10052
10055
  abort: () => void;
10056
+ /**
10057
+ * Subscribe to run-level stream events without consuming the main async iterator.
10058
+ * Returns an unsubscribe function.
10059
+ */
10060
+ watch: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => () => void;
10061
+ /**
10062
+ * Async variant of watch() for compatibility with observer-based integrations.
10063
+ */
10064
+ watchAsync: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => Promise<() => void>;
10065
+ /**
10066
+ * Create a ReadableStream view over workflow events.
10067
+ */
10068
+ observeStream: () => ReadableStream<WorkflowStreamEvent>;
10069
+ /**
10070
+ * Compatibility surface for legacy stream consumers.
10071
+ */
10072
+ streamLegacy: () => {
10073
+ stream: ReadableStream<WorkflowStreamEvent>;
10074
+ getWorkflowState: () => ReturnType<Memory["getWorkflowState"]>;
10075
+ };
10053
10076
  }
10054
10077
  /**
10055
10078
  * Result returned when a workflow execution is started asynchronously
@@ -10721,11 +10744,15 @@ type InternalBaseWorkflowInputSchema = z.ZodTypeAny | BaseMessage | BaseMessage[
10721
10744
  * Context object for new execute API with helper functions
10722
10745
  * @private - INTERNAL USE ONLY
10723
10746
  */
10724
- interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10747
+ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10725
10748
  data: DATA;
10726
10749
  state: WorkflowStepState<INPUT>;
10727
10750
  getStepData: (stepId: string) => WorkflowStepData | undefined;
10751
+ getStepResult: <T = unknown>(stepId: string) => T | null;
10752
+ getInitData: <T = InternalExtractWorkflowInputData<INPUT>>() => T;
10728
10753
  suspend: (reason?: string, suspendData?: SUSPEND_DATA) => Promise<never>;
10754
+ bail: (result?: WORKFLOW_RESULT) => never;
10755
+ abort: () => never;
10729
10756
  resumeData?: RESUME_DATA;
10730
10757
  retryCount?: number;
10731
10758
  workflowState: WorkflowStateStore;
@@ -10746,7 +10773,7 @@ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10746
10773
  * Uses context-based API with data, state, and helper functions
10747
10774
  * @private - INTERNAL USE ONLY
10748
10775
  */
10749
- type InternalWorkflowFunc<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> = (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10776
+ type InternalWorkflowFunc<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> = (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>) => Promise<RESULT>;
10750
10777
  type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10751
10778
  /**
10752
10779
  * Unique identifier for the step
@@ -10770,7 +10797,7 @@ type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10770
10797
  * Base step interface for building new steps
10771
10798
  * @private - INTERNAL USE ONLY
10772
10799
  */
10773
- interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> {
10800
+ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10774
10801
  /**
10775
10802
  * Unique identifier for the step
10776
10803
  */
@@ -10812,13 +10839,13 @@ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DAT
10812
10839
  * @param context - The execution context containing data, state, and helpers
10813
10840
  * @returns The result of the step
10814
10841
  */
10815
- execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10842
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>) => Promise<RESULT>;
10816
10843
  }
10817
10844
  /**
10818
10845
  * Any step that can be accepted by the workflow
10819
10846
  * @private - INTERNAL USE ONLY
10820
10847
  */
10821
- type InternalAnyWorkflowStep<INPUT = DangerouslyAllowAny, DATA = DangerouslyAllowAny, RESULT = DangerouslyAllowAny, SUSPEND_DATA = DangerouslyAllowAny, RESUME_DATA = DangerouslyAllowAny> = InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> | Omit<InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA>, "type">;
10848
+ type InternalAnyWorkflowStep<INPUT = DangerouslyAllowAny, DATA = DangerouslyAllowAny, RESULT = DangerouslyAllowAny, SUSPEND_DATA = DangerouslyAllowAny, RESUME_DATA = DangerouslyAllowAny, WORKFLOW_RESULT = unknown> = InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT> | Omit<InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>, "type">;
10822
10849
  /**
10823
10850
  * Infer the result type from a list of steps
10824
10851
  * @private - INTERNAL USE ONLY
@@ -10868,7 +10895,7 @@ declare function andAgent<INPUT, DATA, SCHEMA extends AgentOutputSchema, RESULT
10868
10895
  name: string;
10869
10896
  purpose: string | null;
10870
10897
  agent: Agent;
10871
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
10898
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
10872
10899
  };
10873
10900
 
10874
10901
  interface WorkflowStepAgent<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, RESULT, any, any> {
@@ -11160,7 +11187,7 @@ declare function andWhen<INPUT, DATA, RESULT>({ condition, step, inputSchema, ou
11160
11187
  declare function andAll<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<InternalAnyWorkflowStep<INPUT, DATA, RESULT>> | WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT>>({ steps: inputSteps, ...config }: WorkflowStepParallelAllConfig<INPUT, DATA, RESULT, STEPS>): {
11161
11188
  type: "parallel-all";
11162
11189
  steps: InternalAnyWorkflowStep<INPUT, DATA, STEPS extends readonly InternalAnyWorkflowStep<INPUT, DATA, RESULT>[] ? InternalInferWorkflowStepsResult<STEPS> : STEPS extends WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> ? InternalInferWorkflowStepsResult<Awaited<ReturnType<STEPS>>> : never>[];
11163
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<STEPS extends readonly InternalAnyWorkflowStep<INPUT, DATA, RESULT>[] ? InternalInferWorkflowStepsResult<STEPS> : STEPS extends WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> ? InternalInferWorkflowStepsResult<Awaited<ReturnType<STEPS>>> : never>;
11190
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<STEPS extends readonly InternalAnyWorkflowStep<INPUT, DATA, RESULT>[] ? InternalInferWorkflowStepsResult<STEPS> : STEPS extends WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> ? InternalInferWorkflowStepsResult<Awaited<ReturnType<STEPS>>> : never>;
11164
11191
  id: string;
11165
11192
  name: string;
11166
11193
  purpose: string;
@@ -11217,7 +11244,7 @@ declare function andRace<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Intern
11217
11244
  }>): {
11218
11245
  type: "parallel-race";
11219
11246
  steps: InternalAnyWorkflowStep<INPUT, DATA, InternalInferWorkflowStepsResult<STEPS>[number]>[];
11220
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11247
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11221
11248
  id: string;
11222
11249
  name: string;
11223
11250
  purpose: string;
@@ -11328,7 +11355,7 @@ declare function andForEach<INPUT, DATA, ITEM, RESULT, MAP_DATA = ITEM>({ step,
11328
11355
  concurrency: number;
11329
11356
  items: WorkflowStepForEachItemsFunc<INPUT, DATA, ITEM> | undefined;
11330
11357
  map: WorkflowStepForEachMapFunc<INPUT, DATA, ITEM, MAP_DATA> | undefined;
11331
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT[]>;
11358
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT[]>;
11332
11359
  id: string;
11333
11360
  name: string;
11334
11361
  purpose: string;
@@ -11344,7 +11371,7 @@ declare function andBranch<INPUT, DATA, RESULT>({ branches, ...config }: Workflo
11344
11371
  condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
11345
11372
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
11346
11373
  }[];
11347
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<(RESULT | undefined)[]>;
11374
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<(RESULT | undefined)[]>;
11348
11375
  id: string;
11349
11376
  name: string;
11350
11377
  purpose: string;
@@ -11361,7 +11388,7 @@ declare function andDoWhile<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11361
11388
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11362
11389
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11363
11390
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11364
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11391
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11365
11392
  id: string;
11366
11393
  name: string;
11367
11394
  purpose: string;
@@ -11376,7 +11403,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11376
11403
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11377
11404
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11378
11405
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11379
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11406
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11380
11407
  id: string;
11381
11408
  name: string;
11382
11409
  purpose: string;
@@ -11389,7 +11416,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11389
11416
  declare function andMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>>({ map, ...config }: WorkflowStepMapConfig<INPUT, DATA, MAP>): {
11390
11417
  type: "map";
11391
11418
  map: MAP;
11392
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepMapResult<MAP>>;
11419
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<WorkflowStepMapResult<MAP>>;
11393
11420
  id: string;
11394
11421
  name: string;
11395
11422
  purpose: string;