@voltagent/core 2.5.0 → 2.6.0

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
@@ -10050,6 +10050,26 @@ interface WorkflowStreamResult<RESULT_SCHEMA extends z.ZodTypeAny, RESUME_SCHEMA
10050
10050
  * Abort the workflow execution
10051
10051
  */
10052
10052
  abort: () => void;
10053
+ /**
10054
+ * Subscribe to run-level stream events without consuming the main async iterator.
10055
+ * Returns an unsubscribe function.
10056
+ */
10057
+ watch: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => () => void;
10058
+ /**
10059
+ * Async variant of watch() for compatibility with observer-based integrations.
10060
+ */
10061
+ watchAsync: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => Promise<() => void>;
10062
+ /**
10063
+ * Create a ReadableStream view over workflow events.
10064
+ */
10065
+ observeStream: () => ReadableStream<WorkflowStreamEvent>;
10066
+ /**
10067
+ * Compatibility surface for legacy stream consumers.
10068
+ */
10069
+ streamLegacy: () => {
10070
+ stream: ReadableStream<WorkflowStreamEvent>;
10071
+ getWorkflowState: () => ReturnType<Memory["getWorkflowState"]>;
10072
+ };
10053
10073
  }
10054
10074
  /**
10055
10075
  * Result returned when a workflow execution is started asynchronously
@@ -10721,11 +10741,15 @@ type InternalBaseWorkflowInputSchema = z.ZodTypeAny | BaseMessage | BaseMessage[
10721
10741
  * Context object for new execute API with helper functions
10722
10742
  * @private - INTERNAL USE ONLY
10723
10743
  */
10724
- interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10744
+ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10725
10745
  data: DATA;
10726
10746
  state: WorkflowStepState<INPUT>;
10727
10747
  getStepData: (stepId: string) => WorkflowStepData | undefined;
10748
+ getStepResult: <T = unknown>(stepId: string) => T | null;
10749
+ getInitData: <T = InternalExtractWorkflowInputData<INPUT>>() => T;
10728
10750
  suspend: (reason?: string, suspendData?: SUSPEND_DATA) => Promise<never>;
10751
+ bail: (result?: WORKFLOW_RESULT) => never;
10752
+ abort: () => never;
10729
10753
  resumeData?: RESUME_DATA;
10730
10754
  retryCount?: number;
10731
10755
  workflowState: WorkflowStateStore;
@@ -10746,7 +10770,7 @@ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10746
10770
  * Uses context-based API with data, state, and helper functions
10747
10771
  * @private - INTERNAL USE ONLY
10748
10772
  */
10749
- type InternalWorkflowFunc<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> = (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10773
+ 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
10774
  type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10751
10775
  /**
10752
10776
  * Unique identifier for the step
@@ -10770,7 +10794,7 @@ type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10770
10794
  * Base step interface for building new steps
10771
10795
  * @private - INTERNAL USE ONLY
10772
10796
  */
10773
- interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> {
10797
+ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10774
10798
  /**
10775
10799
  * Unique identifier for the step
10776
10800
  */
@@ -10812,13 +10836,13 @@ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DAT
10812
10836
  * @param context - The execution context containing data, state, and helpers
10813
10837
  * @returns The result of the step
10814
10838
  */
10815
- execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10839
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>) => Promise<RESULT>;
10816
10840
  }
10817
10841
  /**
10818
10842
  * Any step that can be accepted by the workflow
10819
10843
  * @private - INTERNAL USE ONLY
10820
10844
  */
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">;
10845
+ 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
10846
  /**
10823
10847
  * Infer the result type from a list of steps
10824
10848
  * @private - INTERNAL USE ONLY
@@ -10868,7 +10892,7 @@ declare function andAgent<INPUT, DATA, SCHEMA extends AgentOutputSchema, RESULT
10868
10892
  name: string;
10869
10893
  purpose: string | null;
10870
10894
  agent: Agent;
10871
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
10895
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
10872
10896
  };
10873
10897
 
10874
10898
  interface WorkflowStepAgent<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, RESULT, any, any> {
@@ -11160,7 +11184,7 @@ declare function andWhen<INPUT, DATA, RESULT>({ condition, step, inputSchema, ou
11160
11184
  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
11185
  type: "parallel-all";
11162
11186
  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>;
11187
+ 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
11188
  id: string;
11165
11189
  name: string;
11166
11190
  purpose: string;
@@ -11217,7 +11241,7 @@ declare function andRace<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Intern
11217
11241
  }>): {
11218
11242
  type: "parallel-race";
11219
11243
  steps: InternalAnyWorkflowStep<INPUT, DATA, InternalInferWorkflowStepsResult<STEPS>[number]>[];
11220
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11244
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11221
11245
  id: string;
11222
11246
  name: string;
11223
11247
  purpose: string;
@@ -11328,7 +11352,7 @@ declare function andForEach<INPUT, DATA, ITEM, RESULT, MAP_DATA = ITEM>({ step,
11328
11352
  concurrency: number;
11329
11353
  items: WorkflowStepForEachItemsFunc<INPUT, DATA, ITEM> | undefined;
11330
11354
  map: WorkflowStepForEachMapFunc<INPUT, DATA, ITEM, MAP_DATA> | undefined;
11331
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT[]>;
11355
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT[]>;
11332
11356
  id: string;
11333
11357
  name: string;
11334
11358
  purpose: string;
@@ -11344,7 +11368,7 @@ declare function andBranch<INPUT, DATA, RESULT>({ branches, ...config }: Workflo
11344
11368
  condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
11345
11369
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
11346
11370
  }[];
11347
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<(RESULT | undefined)[]>;
11371
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<(RESULT | undefined)[]>;
11348
11372
  id: string;
11349
11373
  name: string;
11350
11374
  purpose: string;
@@ -11361,7 +11385,7 @@ declare function andDoWhile<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11361
11385
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11362
11386
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11363
11387
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11364
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11388
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11365
11389
  id: string;
11366
11390
  name: string;
11367
11391
  purpose: string;
@@ -11376,7 +11400,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11376
11400
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11377
11401
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11378
11402
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11379
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11403
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11380
11404
  id: string;
11381
11405
  name: string;
11382
11406
  purpose: string;
@@ -11389,7 +11413,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11389
11413
  declare function andMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>>({ map, ...config }: WorkflowStepMapConfig<INPUT, DATA, MAP>): {
11390
11414
  type: "map";
11391
11415
  map: MAP;
11392
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepMapResult<MAP>>;
11416
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<WorkflowStepMapResult<MAP>>;
11393
11417
  id: string;
11394
11418
  name: string;
11395
11419
  purpose: string;
package/dist/index.d.ts CHANGED
@@ -10050,6 +10050,26 @@ interface WorkflowStreamResult<RESULT_SCHEMA extends z.ZodTypeAny, RESUME_SCHEMA
10050
10050
  * Abort the workflow execution
10051
10051
  */
10052
10052
  abort: () => void;
10053
+ /**
10054
+ * Subscribe to run-level stream events without consuming the main async iterator.
10055
+ * Returns an unsubscribe function.
10056
+ */
10057
+ watch: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => () => void;
10058
+ /**
10059
+ * Async variant of watch() for compatibility with observer-based integrations.
10060
+ */
10061
+ watchAsync: (cb: (event: WorkflowStreamEvent) => void | Promise<void>) => Promise<() => void>;
10062
+ /**
10063
+ * Create a ReadableStream view over workflow events.
10064
+ */
10065
+ observeStream: () => ReadableStream<WorkflowStreamEvent>;
10066
+ /**
10067
+ * Compatibility surface for legacy stream consumers.
10068
+ */
10069
+ streamLegacy: () => {
10070
+ stream: ReadableStream<WorkflowStreamEvent>;
10071
+ getWorkflowState: () => ReturnType<Memory["getWorkflowState"]>;
10072
+ };
10053
10073
  }
10054
10074
  /**
10055
10075
  * Result returned when a workflow execution is started asynchronously
@@ -10721,11 +10741,15 @@ type InternalBaseWorkflowInputSchema = z.ZodTypeAny | BaseMessage | BaseMessage[
10721
10741
  * Context object for new execute API with helper functions
10722
10742
  * @private - INTERNAL USE ONLY
10723
10743
  */
10724
- interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10744
+ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10725
10745
  data: DATA;
10726
10746
  state: WorkflowStepState<INPUT>;
10727
10747
  getStepData: (stepId: string) => WorkflowStepData | undefined;
10748
+ getStepResult: <T = unknown>(stepId: string) => T | null;
10749
+ getInitData: <T = InternalExtractWorkflowInputData<INPUT>>() => T;
10728
10750
  suspend: (reason?: string, suspendData?: SUSPEND_DATA) => Promise<never>;
10751
+ bail: (result?: WORKFLOW_RESULT) => never;
10752
+ abort: () => never;
10729
10753
  resumeData?: RESUME_DATA;
10730
10754
  retryCount?: number;
10731
10755
  workflowState: WorkflowStateStore;
@@ -10746,7 +10770,7 @@ interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
10746
10770
  * Uses context-based API with data, state, and helper functions
10747
10771
  * @private - INTERNAL USE ONLY
10748
10772
  */
10749
- type InternalWorkflowFunc<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> = (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10773
+ 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
10774
  type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10751
10775
  /**
10752
10776
  * Unique identifier for the step
@@ -10770,7 +10794,7 @@ type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
10770
10794
  * Base step interface for building new steps
10771
10795
  * @private - INTERNAL USE ONLY
10772
10796
  */
10773
- interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA> {
10797
+ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT = unknown> {
10774
10798
  /**
10775
10799
  * Unique identifier for the step
10776
10800
  */
@@ -10812,13 +10836,13 @@ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DAT
10812
10836
  * @param context - The execution context containing data, state, and helpers
10813
10837
  * @returns The result of the step
10814
10838
  */
10815
- execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA>) => Promise<RESULT>;
10839
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA, WORKFLOW_RESULT>) => Promise<RESULT>;
10816
10840
  }
10817
10841
  /**
10818
10842
  * Any step that can be accepted by the workflow
10819
10843
  * @private - INTERNAL USE ONLY
10820
10844
  */
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">;
10845
+ 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
10846
  /**
10823
10847
  * Infer the result type from a list of steps
10824
10848
  * @private - INTERNAL USE ONLY
@@ -10868,7 +10892,7 @@ declare function andAgent<INPUT, DATA, SCHEMA extends AgentOutputSchema, RESULT
10868
10892
  name: string;
10869
10893
  purpose: string | null;
10870
10894
  agent: Agent;
10871
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
10895
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
10872
10896
  };
10873
10897
 
10874
10898
  interface WorkflowStepAgent<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, RESULT, any, any> {
@@ -11160,7 +11184,7 @@ declare function andWhen<INPUT, DATA, RESULT>({ condition, step, inputSchema, ou
11160
11184
  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
11185
  type: "parallel-all";
11162
11186
  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>;
11187
+ 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
11188
  id: string;
11165
11189
  name: string;
11166
11190
  purpose: string;
@@ -11217,7 +11241,7 @@ declare function andRace<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Intern
11217
11241
  }>): {
11218
11242
  type: "parallel-race";
11219
11243
  steps: InternalAnyWorkflowStep<INPUT, DATA, InternalInferWorkflowStepsResult<STEPS>[number]>[];
11220
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11244
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<InternalInferWorkflowStepsResult<STEPS>[number]>;
11221
11245
  id: string;
11222
11246
  name: string;
11223
11247
  purpose: string;
@@ -11328,7 +11352,7 @@ declare function andForEach<INPUT, DATA, ITEM, RESULT, MAP_DATA = ITEM>({ step,
11328
11352
  concurrency: number;
11329
11353
  items: WorkflowStepForEachItemsFunc<INPUT, DATA, ITEM> | undefined;
11330
11354
  map: WorkflowStepForEachMapFunc<INPUT, DATA, ITEM, MAP_DATA> | undefined;
11331
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT[]>;
11355
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT[]>;
11332
11356
  id: string;
11333
11357
  name: string;
11334
11358
  purpose: string;
@@ -11344,7 +11368,7 @@ declare function andBranch<INPUT, DATA, RESULT>({ branches, ...config }: Workflo
11344
11368
  condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
11345
11369
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
11346
11370
  }[];
11347
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<(RESULT | undefined)[]>;
11371
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<(RESULT | undefined)[]>;
11348
11372
  id: string;
11349
11373
  name: string;
11350
11374
  purpose: string;
@@ -11361,7 +11385,7 @@ declare function andDoWhile<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11361
11385
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11362
11386
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11363
11387
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11364
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11388
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11365
11389
  id: string;
11366
11390
  name: string;
11367
11391
  purpose: string;
@@ -11376,7 +11400,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11376
11400
  step: InternalAnyWorkflowStep<INPUT, DATA, RESULT> | InternalAnyWorkflowStep<INPUT, DATA, any>;
11377
11401
  steps: WorkflowStepLoopSteps<INPUT, DATA, RESULT>;
11378
11402
  condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
11379
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
11403
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<RESULT>;
11380
11404
  id: string;
11381
11405
  name: string;
11382
11406
  purpose: string;
@@ -11389,7 +11413,7 @@ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<
11389
11413
  declare function andMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>>({ map, ...config }: WorkflowStepMapConfig<INPUT, DATA, MAP>): {
11390
11414
  type: "map";
11391
11415
  map: MAP;
11392
- execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepMapResult<MAP>>;
11416
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any, unknown>) => Promise<WorkflowStepMapResult<MAP>>;
11393
11417
  id: string;
11394
11418
  name: string;
11395
11419
  purpose: string;