@voltagent/core 2.0.7 → 2.0.9

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
@@ -4919,7 +4919,7 @@ type AgentOptions = {
4919
4919
  context?: ContextInput;
4920
4920
  eval?: AgentEvalConfig;
4921
4921
  };
4922
- type AgentEvalOperationType = "generateText" | "streamText" | "generateObject" | "streamObject";
4922
+ type AgentEvalOperationType = "generateText" | "streamText" | "generateObject" | "streamObject" | "workflow";
4923
4923
  interface AgentEvalPayload {
4924
4924
  operationId: string;
4925
4925
  operationType: AgentEvalOperationType;
@@ -5928,6 +5928,18 @@ interface WorkflowStreamResult<RESULT_SCHEMA extends z.ZodTypeAny, RESUME_SCHEMA
5928
5928
  */
5929
5929
  abort: () => void;
5930
5930
  }
5931
+ interface WorkflowRetryConfig {
5932
+ /**
5933
+ * Number of retry attempts for a step when it throws an error
5934
+ * @default 0
5935
+ */
5936
+ attempts?: number;
5937
+ /**
5938
+ * Delay in milliseconds between retry attempts
5939
+ * @default 0
5940
+ */
5941
+ delayMs?: number;
5942
+ }
5931
5943
  interface WorkflowRunOptions {
5932
5944
  /**
5933
5945
  * The active step, this can be used to track the current step in a workflow
@@ -5976,6 +5988,22 @@ interface WorkflowRunOptions {
5976
5988
  * If not provided, will use the workflow's logger or global logger
5977
5989
  */
5978
5990
  logger?: Logger;
5991
+ /**
5992
+ * Override retry settings for this workflow execution
5993
+ */
5994
+ retryConfig?: WorkflowRetryConfig;
5995
+ /**
5996
+ * Input guardrails to run before workflow execution
5997
+ */
5998
+ inputGuardrails?: InputGuardrail[];
5999
+ /**
6000
+ * Output guardrails to run after workflow execution
6001
+ */
6002
+ outputGuardrails?: OutputGuardrail<any>[];
6003
+ /**
6004
+ * Optional agent instance to supply to workflow guardrails
6005
+ */
6006
+ guardrailAgent?: Agent;
5979
6007
  }
5980
6008
  interface WorkflowResumeOptions {
5981
6009
  /**
@@ -6007,6 +6035,44 @@ interface WorkflowResumeOptions {
6007
6035
  * @param DATA - The type of the data
6008
6036
  * @param RESULT - The type of the result
6009
6037
  */
6038
+ type WorkflowHookStatus = "completed" | "suspended" | "cancelled" | "error";
6039
+ type WorkflowStepStatus = "running" | "success" | "error" | "suspended" | "cancelled" | "skipped";
6040
+ type WorkflowStepData = {
6041
+ input: DangerouslyAllowAny;
6042
+ output?: DangerouslyAllowAny;
6043
+ status: WorkflowStepStatus;
6044
+ error?: Error | null;
6045
+ };
6046
+ type WorkflowHookContext<DATA, RESULT> = {
6047
+ /**
6048
+ * Terminal status for the workflow execution
6049
+ */
6050
+ status: WorkflowHookStatus;
6051
+ /**
6052
+ * The current workflow state
6053
+ */
6054
+ state: WorkflowState<DATA, RESULT>;
6055
+ /**
6056
+ * Result of the workflow execution, if available
6057
+ */
6058
+ result: RESULT | null;
6059
+ /**
6060
+ * Error from the workflow execution, if any
6061
+ */
6062
+ error: unknown | null;
6063
+ /**
6064
+ * Suspension metadata when status is suspended
6065
+ */
6066
+ suspension?: WorkflowSuspensionMetadata;
6067
+ /**
6068
+ * Cancellation metadata when status is cancelled
6069
+ */
6070
+ cancellation?: WorkflowCancellationMetadata;
6071
+ /**
6072
+ * Step input/output snapshots keyed by step ID
6073
+ */
6074
+ steps: Record<string, WorkflowStepData>;
6075
+ };
6010
6076
  type WorkflowHooks<DATA, RESULT> = {
6011
6077
  /**
6012
6078
  * Called when the workflow starts
@@ -6027,11 +6093,30 @@ type WorkflowHooks<DATA, RESULT> = {
6027
6093
  */
6028
6094
  onStepEnd?: (state: WorkflowState<DATA, RESULT>) => Promise<void>;
6029
6095
  /**
6030
- * Called when the workflow ends
6096
+ * Called when the workflow is suspended
6097
+ * @param context - The terminal hook context
6098
+ * @returns void
6099
+ */
6100
+ onSuspend?: (context: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6101
+ /**
6102
+ * Called when the workflow ends with an error
6103
+ * @param context - The terminal hook context
6104
+ * @returns void
6105
+ */
6106
+ onError?: (context: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6107
+ /**
6108
+ * Called when the workflow reaches a terminal state
6109
+ * @param context - The terminal hook context
6110
+ * @returns void
6111
+ */
6112
+ onFinish?: (context: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6113
+ /**
6114
+ * Called when the workflow ends (completed, cancelled, or error)
6031
6115
  * @param state - The current state of the workflow
6116
+ * @param context - The terminal hook context
6032
6117
  * @returns void
6033
6118
  */
6034
- onEnd?: (state: WorkflowState<DATA, RESULT>) => Promise<void>;
6119
+ onEnd?: (state: WorkflowState<DATA, RESULT>, context?: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6035
6120
  };
6036
6121
  type WorkflowInput<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema> = TF.IsUnknown<INPUT_SCHEMA> extends true ? BaseMessage | BaseMessage[] | UIMessage | UIMessage[] | string : INPUT_SCHEMA extends z.ZodTypeAny ? z.infer<INPUT_SCHEMA> : undefined;
6037
6122
  type WorkflowResult<RESULT_SCHEMA extends z.ZodTypeAny> = RESULT_SCHEMA extends z.ZodTypeAny ? z.infer<RESULT_SCHEMA> : RESULT_SCHEMA;
@@ -6083,6 +6168,22 @@ type WorkflowConfig<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema, RESULT
6083
6168
  * If not provided, will use global observability or create a default one
6084
6169
  */
6085
6170
  observability?: VoltAgentObservability;
6171
+ /**
6172
+ * Input guardrails to run before workflow execution
6173
+ */
6174
+ inputGuardrails?: InputGuardrail[];
6175
+ /**
6176
+ * Output guardrails to run after workflow execution
6177
+ */
6178
+ outputGuardrails?: OutputGuardrail<any>[];
6179
+ /**
6180
+ * Optional agent instance to supply to workflow guardrails
6181
+ */
6182
+ guardrailAgent?: Agent;
6183
+ /**
6184
+ * Default retry configuration for steps in this workflow
6185
+ */
6186
+ retryConfig?: WorkflowRetryConfig;
6086
6187
  };
6087
6188
  /**
6088
6189
  * A workflow instance that can be executed
@@ -6129,6 +6230,22 @@ type Workflow<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema, RESULT_SCHEM
6129
6230
  * Observability instance for OpenTelemetry integration
6130
6231
  */
6131
6232
  observability?: VoltAgentObservability;
6233
+ /**
6234
+ * Input guardrails configured for this workflow
6235
+ */
6236
+ inputGuardrails?: InputGuardrail[];
6237
+ /**
6238
+ * Output guardrails configured for this workflow
6239
+ */
6240
+ outputGuardrails?: OutputGuardrail<any>[];
6241
+ /**
6242
+ * Optional agent instance supplied to workflow guardrails
6243
+ */
6244
+ guardrailAgent?: Agent;
6245
+ /**
6246
+ * Default retry configuration for steps in this workflow
6247
+ */
6248
+ retryConfig?: WorkflowRetryConfig;
6132
6249
  /**
6133
6250
  * Get the full state of the workflow including all steps
6134
6251
  * @returns The serialized workflow state
@@ -6143,6 +6260,11 @@ type Workflow<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema, RESULT_SCHEM
6143
6260
  resultSchema?: DangerouslyAllowAny;
6144
6261
  suspendSchema?: DangerouslyAllowAny;
6145
6262
  resumeSchema?: DangerouslyAllowAny;
6263
+ retryConfig?: WorkflowRetryConfig;
6264
+ guardrails?: {
6265
+ inputCount: number;
6266
+ outputCount: number;
6267
+ };
6146
6268
  };
6147
6269
  /**
6148
6270
  * Execute the workflow with the given input
@@ -6223,7 +6345,7 @@ interface WorkflowStreamEvent {
6223
6345
  /**
6224
6346
  * Current status of the step/event
6225
6347
  */
6226
- status: "pending" | "running" | "success" | "error" | "suspended" | "cancelled";
6348
+ status: "pending" | "running" | "success" | "skipped" | "error" | "suspended" | "cancelled";
6227
6349
  /**
6228
6350
  * User context passed through the workflow
6229
6351
  */
@@ -6239,7 +6361,7 @@ interface WorkflowStreamEvent {
6239
6361
  /**
6240
6362
  * Step type for step events
6241
6363
  */
6242
- stepType?: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race" | "tap" | "workflow";
6364
+ stepType?: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race" | "tap" | "workflow" | "guardrail" | "sleep" | "sleep-until" | "foreach" | "loop" | "branch" | "map";
6243
6365
  /**
6244
6366
  * Additional metadata
6245
6367
  */
@@ -6334,6 +6456,15 @@ declare class WorkflowTraceContext {
6334
6456
  parentSpan: Span;
6335
6457
  childSpans: Span[];
6336
6458
  };
6459
+ /**
6460
+ * Create a generic child span under the workflow root or an optional parent span
6461
+ */
6462
+ createChildSpan(name: string, type: string, options?: {
6463
+ label?: string;
6464
+ attributes?: Record<string, any>;
6465
+ kind?: SpanKind$1;
6466
+ parentSpan?: Span;
6467
+ }): Span;
6337
6468
  /**
6338
6469
  * Record a suspension event on the workflow
6339
6470
  */
@@ -6354,6 +6485,10 @@ declare class WorkflowTraceContext {
6354
6485
  * Get the root span
6355
6486
  */
6356
6487
  getRootSpan(): Span;
6488
+ /**
6489
+ * Set input on the root span
6490
+ */
6491
+ setInput(input: any): void;
6357
6492
  /**
6358
6493
  * Set output on the root span
6359
6494
  */
@@ -6441,10 +6576,7 @@ interface WorkflowExecutionContext {
6441
6576
  * Map of executed step data (input and output) by step ID
6442
6577
  * Used for accessing previous step results
6443
6578
  */
6444
- stepData: Map<string, {
6445
- input: any;
6446
- output: any;
6447
- }>;
6579
+ stepData: Map<string, WorkflowStepData>;
6448
6580
  /**
6449
6581
  * Current event sequence number for this workflow execution
6450
6582
  * Used to maintain event ordering even after server restarts
@@ -6465,6 +6597,10 @@ interface WorkflowExecutionContext {
6465
6597
  * Manages span hierarchy and attributes for the workflow execution
6466
6598
  */
6467
6599
  traceContext?: WorkflowTraceContext;
6600
+ /**
6601
+ * Optional agent instance supplied to workflow guardrails
6602
+ */
6603
+ guardrailAgent?: Agent;
6468
6604
  /**
6469
6605
  * Current step span for passing to agents called within workflow steps
6470
6606
  * This enables agent spans to appear as children of workflow step spans
@@ -6477,7 +6613,7 @@ interface WorkflowExecutionContext {
6477
6613
  interface WorkflowStepContext {
6478
6614
  stepId: string;
6479
6615
  stepIndex: number;
6480
- stepType: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race";
6616
+ stepType: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race" | "tap" | "workflow" | "guardrail" | "sleep" | "sleep-until" | "foreach" | "loop" | "branch" | "map";
6481
6617
  stepName: string;
6482
6618
  workflowId: string;
6483
6619
  executionId: string;
@@ -6506,14 +6642,12 @@ type InternalWorkflowStateParam<INPUT> = Omit<WorkflowState<INPUT, DangerouslyAl
6506
6642
  * @private - INTERNAL USE ONLY
6507
6643
  */
6508
6644
  interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
6509
- data: InternalExtractWorkflowInputData<DATA>;
6645
+ data: DATA;
6510
6646
  state: InternalWorkflowStateParam<INPUT>;
6511
- getStepData: (stepId: string) => {
6512
- input: any;
6513
- output: any;
6514
- } | undefined;
6647
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
6515
6648
  suspend: (reason?: string, suspendData?: SUSPEND_DATA) => Promise<never>;
6516
6649
  resumeData?: RESUME_DATA;
6650
+ retryCount?: number;
6517
6651
  /**
6518
6652
  * Logger instance for this workflow execution.
6519
6653
  * Provides execution-scoped logging with full context (userId, conversationId, executionId).
@@ -6545,6 +6679,10 @@ type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
6545
6679
  * Description of what the step does
6546
6680
  */
6547
6681
  purpose?: string;
6682
+ /**
6683
+ * Number of retry attempts when the step throws an error
6684
+ */
6685
+ retries?: number;
6548
6686
  } & T;
6549
6687
  /**
6550
6688
  * Base step interface for building new steps
@@ -6583,6 +6721,10 @@ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DAT
6583
6721
  * Optional resume data schema for this step
6584
6722
  */
6585
6723
  resumeSchema?: z.ZodTypeAny;
6724
+ /**
6725
+ * Number of retry attempts when the step throws an error
6726
+ */
6727
+ retries?: number;
6586
6728
  /**
6587
6729
  * Execute the step with the given context
6588
6730
  * @param context - The execution context containing data, state, and helpers
@@ -6629,8 +6771,8 @@ type AgentConfig$1<SCHEMA extends z.ZodTypeAny, INPUT, DATA> = BaseGenerationOpt
6629
6771
  * ```
6630
6772
  *
6631
6773
  * @param task - The task (prompt) to execute for the agent, can be a string or a function that returns a string
6632
- * @param agent - The agent to execute the task using `generateObject`
6633
- * @param config - The config for the agent (schema) `generateObject` call
6774
+ * @param agent - The agent to execute the task using `generateText`
6775
+ * @param config - The config for the agent (schema) `generateText` call
6634
6776
  * @returns A workflow step that executes the agent with the task
6635
6777
  */
6636
6778
  declare function andAgent<INPUT, DATA, SCHEMA extends z.ZodTypeAny>(task: UIMessage[] | ModelMessage[] | string | InternalWorkflowFunc<INPUT, DATA, UIMessage[] | ModelMessage[] | string, any, any>, agent: Agent, config: AgentConfig$1<SCHEMA, INPUT, DATA>): {
@@ -6660,6 +6802,15 @@ interface WorkflowStepWorkflow<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA =
6660
6802
  type: "workflow";
6661
6803
  workflow: InternalWorkflow<INPUT, DATA, RESULT>;
6662
6804
  }
6805
+ type WorkflowStepGuardrailConfig<_INPUT, DATA> = InternalWorkflowStepConfig<{
6806
+ inputGuardrails?: InputGuardrail[];
6807
+ outputGuardrails?: OutputGuardrail<DATA>[];
6808
+ }>;
6809
+ interface WorkflowStepGuardrail<INPUT, DATA> extends InternalBaseWorkflowStep<INPUT, DATA, DATA, any, any> {
6810
+ type: "guardrail";
6811
+ inputGuardrails?: InputGuardrail[];
6812
+ outputGuardrails?: OutputGuardrail<DATA>[];
6813
+ }
6663
6814
  type WorkflowStepTapConfig<INPUT, DATA, _RESULT, SUSPEND_DATA, RESUME_DATA = any> = InternalWorkflowStepConfig<{
6664
6815
  execute: InternalWorkflowFunc<INPUT, DATA, DangerouslyAllowAny, SUSPEND_DATA, RESUME_DATA>;
6665
6816
  inputSchema?: z.ZodTypeAny;
@@ -6695,14 +6846,100 @@ interface WorkflowStepParallelAll<INPUT, DATA, RESULT> extends InternalBaseWorkf
6695
6846
  type: "parallel-all";
6696
6847
  steps: WorkflowStepParallelSteps<INPUT, DATA, RESULT> | WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT>;
6697
6848
  }
6849
+ type WorkflowStepSleepConfig<INPUT, DATA> = InternalWorkflowStepConfig<{
6850
+ duration: number | InternalWorkflowFunc<INPUT, DATA, number, any, any>;
6851
+ }>;
6852
+ interface WorkflowStepSleep<INPUT, DATA> extends InternalBaseWorkflowStep<INPUT, DATA, DATA, any, any> {
6853
+ type: "sleep";
6854
+ duration: number | InternalWorkflowFunc<INPUT, DATA, number, any, any>;
6855
+ }
6856
+ type WorkflowStepSleepUntilConfig<INPUT, DATA> = InternalWorkflowStepConfig<{
6857
+ date: Date | InternalWorkflowFunc<INPUT, DATA, Date, any, any>;
6858
+ }>;
6859
+ interface WorkflowStepSleepUntil<INPUT, DATA> extends InternalBaseWorkflowStep<INPUT, DATA, DATA, any, any> {
6860
+ type: "sleep-until";
6861
+ date: Date | InternalWorkflowFunc<INPUT, DATA, Date, any, any>;
6862
+ }
6863
+ type WorkflowStepForEachConfig<INPUT, ITEM, RESULT> = InternalWorkflowStepConfig<{
6864
+ step: InternalAnyWorkflowStep<INPUT, ITEM, RESULT>;
6865
+ concurrency?: number;
6866
+ }>;
6867
+ interface WorkflowStepForEach<INPUT, ITEM, RESULT> extends InternalBaseWorkflowStep<INPUT, ITEM[], RESULT[], any, any> {
6868
+ type: "foreach";
6869
+ step: InternalAnyWorkflowStep<INPUT, ITEM, RESULT>;
6870
+ concurrency?: number;
6871
+ }
6872
+ type WorkflowStepLoopConfig<INPUT, DATA, RESULT> = InternalWorkflowStepConfig<{
6873
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6874
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
6875
+ }>;
6876
+ interface WorkflowStepLoop<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, RESULT, any, any> {
6877
+ type: "loop";
6878
+ loopType: "dowhile" | "dountil";
6879
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6880
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
6881
+ }
6882
+ type WorkflowStepBranchConfig<INPUT, DATA, RESULT> = InternalWorkflowStepConfig<{
6883
+ branches: ReadonlyArray<{
6884
+ condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
6885
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6886
+ }>;
6887
+ }>;
6888
+ interface WorkflowStepBranch<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, Array<RESULT | undefined>, any, any> {
6889
+ type: "branch";
6890
+ branches: ReadonlyArray<{
6891
+ condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
6892
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6893
+ }>;
6894
+ }
6895
+ type WorkflowStepMapEntry<INPUT, DATA> = {
6896
+ source: "value";
6897
+ value: unknown;
6898
+ } | {
6899
+ source: "data";
6900
+ path?: string;
6901
+ } | {
6902
+ source: "input";
6903
+ path?: string;
6904
+ } | {
6905
+ source: "step";
6906
+ stepId: string;
6907
+ path?: string;
6908
+ } | {
6909
+ source: "context";
6910
+ key: string;
6911
+ path?: string;
6912
+ } | {
6913
+ source: "fn";
6914
+ fn: InternalWorkflowFunc<INPUT, DATA, unknown, any, any>;
6915
+ };
6916
+ type WorkflowStepMapEntryResult<ENTRY> = ENTRY extends {
6917
+ source: "value";
6918
+ value: infer VALUE;
6919
+ } ? VALUE : ENTRY extends {
6920
+ source: "fn";
6921
+ fn: (...args: any[]) => Promise<infer RESULT>;
6922
+ } ? RESULT : unknown;
6923
+ type WorkflowStepMapResult<MAP extends Record<string, WorkflowStepMapEntry<any, any>>> = {
6924
+ [KEY in keyof MAP]: WorkflowStepMapEntryResult<MAP[KEY]>;
6925
+ };
6926
+ type WorkflowStepMapConfig<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>> = InternalWorkflowStepConfig<{
6927
+ map: MAP;
6928
+ inputSchema?: z.ZodTypeAny;
6929
+ outputSchema?: z.ZodTypeAny;
6930
+ }>;
6931
+ interface WorkflowStepMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>> extends InternalBaseWorkflowStep<INPUT, DATA, WorkflowStepMapResult<MAP>, any, any> {
6932
+ type: "map";
6933
+ map: MAP;
6934
+ }
6698
6935
  type WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> = (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepParallelSteps<INPUT, DATA, RESULT>>;
6699
6936
  type WorkflowStepParallelSteps<INPUT, DATA, RESULT> = ReadonlyArray<InternalAnyWorkflowStep<INPUT, DATA, RESULT>>;
6700
- type WorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA = any> = WorkflowStepAgent<INPUT, DATA, RESULT> | WorkflowStepFunc<INPUT, DATA, RESULT, SUSPEND_DATA> | WorkflowStepConditionalWhen<INPUT, DATA, RESULT> | WorkflowStepParallelAll<INPUT, DATA, RESULT> | WorkflowStepTap<INPUT, DATA, RESULT, SUSPEND_DATA> | WorkflowStepParallelRace<INPUT, DATA, RESULT> | WorkflowStepWorkflow<INPUT, DATA, RESULT, SUSPEND_DATA>;
6937
+ type WorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA = any> = WorkflowStepAgent<INPUT, DATA, RESULT> | WorkflowStepFunc<INPUT, DATA, RESULT, SUSPEND_DATA> | WorkflowStepConditionalWhen<INPUT, DATA, RESULT> | WorkflowStepGuardrail<INPUT, DATA> | WorkflowStepParallelAll<INPUT, DATA, RESULT> | WorkflowStepTap<INPUT, DATA, RESULT, SUSPEND_DATA> | WorkflowStepParallelRace<INPUT, DATA, RESULT> | WorkflowStepWorkflow<INPUT, DATA, RESULT, SUSPEND_DATA> | WorkflowStepSleep<INPUT, DATA> | WorkflowStepSleepUntil<INPUT, DATA> | WorkflowStepForEach<INPUT, any, any> | WorkflowStepLoop<INPUT, DATA, RESULT> | WorkflowStepBranch<INPUT, DATA, RESULT> | WorkflowStepMap<INPUT, DATA, Record<string, WorkflowStepMapEntry<INPUT, DATA>>>;
6701
6938
  /**
6702
6939
  * Internal type to allow overriding the run method for the workflow
6703
6940
  */
6704
6941
  interface InternalWorkflow<_INPUT, DATA, RESULT> extends Omit<Workflow<DangerouslyAllowAny, DangerouslyAllowAny>, "run"> {
6705
- run: (input: InternalExtractWorkflowInputData<DATA>, options?: InternalWorkflowRunOptions) => Promise<{
6942
+ run: (input: DATA, options?: InternalWorkflowRunOptions) => Promise<{
6706
6943
  executionId: string;
6707
6944
  startAt: Date;
6708
6945
  endAt: Date;
@@ -6820,6 +7057,7 @@ declare function andAll<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Interna
6820
7057
  id: string;
6821
7058
  name: string;
6822
7059
  purpose: string;
7060
+ retries?: number;
6823
7061
  };
6824
7062
 
6825
7063
  /**
@@ -6876,6 +7114,7 @@ declare function andRace<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Intern
6876
7114
  id: string;
6877
7115
  name: string;
6878
7116
  purpose: string;
7117
+ retries?: number;
6879
7118
  };
6880
7119
 
6881
7120
  /**
@@ -6912,6 +7151,139 @@ declare function andTap<INPUT, DATA, RESULT, SUSPEND_DATA = DangerouslyAllowAny,
6912
7151
  id: string;
6913
7152
  name: string;
6914
7153
  purpose: string;
7154
+ retries?: number;
7155
+ };
7156
+
7157
+ /**
7158
+ * Applies guardrails to the current workflow data.
7159
+ * Use input guardrails for string/message data and output guardrails for structured data.
7160
+ */
7161
+ declare function andGuardrail<INPUT, DATA>({ inputGuardrails, outputGuardrails, ...config }: WorkflowStepGuardrailConfig<INPUT, DATA>): {
7162
+ type: "guardrail";
7163
+ inputGuardrails: InputGuardrail[] | undefined;
7164
+ outputGuardrails: OutputGuardrail<DATA>[] | undefined;
7165
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<DATA>;
7166
+ id: string;
7167
+ name: string;
7168
+ purpose: string;
7169
+ retries?: number;
7170
+ };
7171
+
7172
+ /**
7173
+ * Creates a sleep step for the workflow
7174
+ *
7175
+ * @example
7176
+ * ```ts
7177
+ * const w = createWorkflow(
7178
+ * andSleep({ id: "pause", duration: 500 }),
7179
+ * andThen({ id: "next", execute: async ({ data }) => ({ ...data }) })
7180
+ * );
7181
+ * ```
7182
+ */
7183
+ declare function andSleep<INPUT, DATA>({ duration, ...config }: WorkflowStepSleepConfig<INPUT, DATA>): {
7184
+ type: "sleep";
7185
+ duration: number | InternalWorkflowFunc<INPUT, DATA, number, any, any>;
7186
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<DATA>;
7187
+ id: string;
7188
+ name: string;
7189
+ purpose: string;
7190
+ retries?: number;
7191
+ };
7192
+
7193
+ /**
7194
+ * Creates a sleep-until step for the workflow
7195
+ *
7196
+ * @example
7197
+ * ```ts
7198
+ * const w = createWorkflow(
7199
+ * andSleepUntil({ id: "pause-until", date: new Date(Date.now() + 1000) }),
7200
+ * andThen({ id: "next", execute: async ({ data }) => ({ ...data }) })
7201
+ * );
7202
+ * ```
7203
+ */
7204
+ declare function andSleepUntil<INPUT, DATA>({ date, ...config }: WorkflowStepSleepUntilConfig<INPUT, DATA>): {
7205
+ type: "sleep-until";
7206
+ date: Date | InternalWorkflowFunc<INPUT, DATA, Date, any, any>;
7207
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<DATA>;
7208
+ id: string;
7209
+ name: string;
7210
+ purpose: string;
7211
+ retries?: number;
7212
+ };
7213
+
7214
+ /**
7215
+ * Creates a foreach step that runs a step for each item in an array.
7216
+ */
7217
+ declare function andForEach<INPUT, ITEM, RESULT>({ step, concurrency, ...config }: WorkflowStepForEachConfig<INPUT, ITEM, RESULT>): {
7218
+ type: "foreach";
7219
+ step: InternalAnyWorkflowStep<INPUT, ITEM, RESULT>;
7220
+ concurrency: number;
7221
+ execute: (context: WorkflowExecuteContext<INPUT, ITEM[], any, any>) => Promise<RESULT[]>;
7222
+ id: string;
7223
+ name: string;
7224
+ purpose: string;
7225
+ retries?: number;
7226
+ };
7227
+
7228
+ /**
7229
+ * Creates a branching step that runs all steps whose conditions match.
7230
+ */
7231
+ declare function andBranch<INPUT, DATA, RESULT>({ branches, ...config }: WorkflowStepBranchConfig<INPUT, DATA, RESULT>): {
7232
+ type: "branch";
7233
+ branches: readonly {
7234
+ condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
7235
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
7236
+ }[];
7237
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<(RESULT | undefined)[]>;
7238
+ id: string;
7239
+ name: string;
7240
+ purpose: string;
7241
+ retries?: number;
7242
+ };
7243
+
7244
+ type LoopType = "dowhile" | "dountil";
7245
+ /**
7246
+ * Creates a do-while loop step for the workflow.
7247
+ */
7248
+ declare function andDoWhile<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<INPUT, DATA, RESULT>): {
7249
+ type: "loop";
7250
+ loopType: LoopType;
7251
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
7252
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
7253
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
7254
+ id: string;
7255
+ name: string;
7256
+ purpose: string;
7257
+ retries?: number;
7258
+ };
7259
+ /**
7260
+ * Creates a do-until loop step for the workflow.
7261
+ */
7262
+ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<INPUT, DATA, RESULT>): {
7263
+ type: "loop";
7264
+ loopType: LoopType;
7265
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
7266
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
7267
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
7268
+ id: string;
7269
+ name: string;
7270
+ purpose: string;
7271
+ retries?: number;
7272
+ };
7273
+
7274
+ /**
7275
+ * Creates a mapping step that composes data from input, steps, or context.
7276
+ */
7277
+ declare function andMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>>({ map, ...config }: WorkflowStepMapConfig<INPUT, DATA, MAP>): {
7278
+ type: "map";
7279
+ map: MAP;
7280
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepMapResult<MAP>>;
7281
+ id: string;
7282
+ name: string;
7283
+ purpose: string;
7284
+ retries?: number;
7285
+ inputSchema?: zod.ZodTypeAny;
7286
+ outputSchema?: zod.ZodTypeAny;
6915
7287
  };
6916
7288
 
6917
7289
  /**
@@ -7031,9 +7403,21 @@ interface SerializedWorkflowStep {
7031
7403
  outputSchema?: unknown;
7032
7404
  suspendSchema?: unknown;
7033
7405
  resumeSchema?: unknown;
7406
+ retries?: number;
7034
7407
  agentId?: string;
7408
+ workflowId?: string;
7035
7409
  executeFunction?: string;
7036
7410
  conditionFunction?: string;
7411
+ conditionFunctions?: string[];
7412
+ loopType?: "dowhile" | "dountil";
7413
+ sleepDurationMs?: number;
7414
+ sleepDurationFn?: string;
7415
+ sleepUntil?: string;
7416
+ sleepUntilFn?: string;
7417
+ concurrency?: number;
7418
+ mapConfig?: string;
7419
+ guardrailInputCount?: number;
7420
+ guardrailOutputCount?: number;
7037
7421
  nestedStep?: SerializedWorkflowStep;
7038
7422
  subSteps?: SerializedWorkflowStep[];
7039
7423
  subStepsCount?: number;
@@ -7116,8 +7500,8 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7116
7500
  * ```
7117
7501
  *
7118
7502
  * @param task - The task (prompt) to execute for the agent, can be a string or a function that returns a string
7119
- * @param agent - The agent to execute the task using `generateObject`
7120
- * @param config - The config for the agent (schema) `generateObject` call
7503
+ * @param agent - The agent to execute the task using `generateText`
7504
+ * @param config - The config for the agent (schema) `generateText` call
7121
7505
  * @returns A workflow step that executes the agent with the task
7122
7506
  */
7123
7507
  andAgent<SCHEMA extends z.ZodTypeAny>(task: string | UIMessage[] | ModelMessage[] | InternalWorkflowFunc<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, string | UIMessage[] | ModelMessage[], any, any>, agent: Agent, config: AgentConfig<SCHEMA, INPUT_SCHEMA, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, z.infer<SCHEMA>, SUSPEND_SCHEMA, RESUME_SCHEMA>;
@@ -7134,10 +7518,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7134
7518
  execute: (context: {
7135
7519
  data: z.infer<IS>;
7136
7520
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7137
- getStepData: (stepId: string) => {
7138
- input: any;
7139
- output: any;
7140
- } | undefined;
7521
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7141
7522
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7142
7523
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7143
7524
  logger: Logger;
@@ -7160,10 +7541,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7160
7541
  execute: (context: {
7161
7542
  data: z.infer<IS>;
7162
7543
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7163
- getStepData: (stepId: string) => {
7164
- input: any;
7165
- output: any;
7166
- } | undefined;
7544
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7167
7545
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7168
7546
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7169
7547
  logger: Logger;
@@ -7186,10 +7564,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7186
7564
  execute: (context: {
7187
7565
  data: CURRENT_DATA;
7188
7566
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7189
- getStepData: (stepId: string) => {
7190
- input: any;
7191
- output: any;
7192
- } | undefined;
7567
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7193
7568
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7194
7569
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7195
7570
  logger: Logger;
@@ -7212,10 +7587,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7212
7587
  execute: (context: {
7213
7588
  data: CURRENT_DATA;
7214
7589
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7215
- getStepData: (stepId: string) => {
7216
- input: any;
7217
- output: any;
7218
- } | undefined;
7590
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7219
7591
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7220
7592
  resumeData?: z.infer<RS>;
7221
7593
  logger: Logger;
@@ -7254,10 +7626,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7254
7626
  execute: (context: {
7255
7627
  data: CURRENT_DATA;
7256
7628
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7257
- getStepData: (stepId: string) => {
7258
- input: any;
7259
- output: any;
7260
- } | undefined;
7629
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7261
7630
  suspend: (reason?: string, suspendData?: z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7262
7631
  resumeData?: z.infer<RESUME_SCHEMA>;
7263
7632
  logger: Logger;
@@ -7284,10 +7653,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7284
7653
  condition: (context: {
7285
7654
  data: z.infer<IS>;
7286
7655
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7287
- getStepData: (stepId: string) => {
7288
- input: any;
7289
- output: any;
7290
- } | undefined;
7656
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7291
7657
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7292
7658
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7293
7659
  logger: Logger;
@@ -7314,11 +7680,11 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7314
7680
  * id: "process-pending",
7315
7681
  * condition: async ({ data }) => data.status === "pending",
7316
7682
  * execute: async ({ data }) => {
7317
- * const result = await agent.generateObject(
7683
+ * const result = await agent.generateText(
7318
7684
  * `Process pending request for ${data.userId}`,
7319
- * z.object({ processed: z.boolean() })
7685
+ * { output: Output.object({ schema: z.object({ processed: z.boolean() }) }) }
7320
7686
  * );
7321
- * return { ...data, ...result.object };
7687
+ * return { ...data, ...result.output };
7322
7688
  * }
7323
7689
  * });
7324
7690
  * ```
@@ -7345,10 +7711,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7345
7711
  execute: (context: {
7346
7712
  data: z.infer<IS>;
7347
7713
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7348
- getStepData: (stepId: string) => {
7349
- input: any;
7350
- output: any;
7351
- } | undefined;
7714
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7352
7715
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7353
7716
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7354
7717
  logger: Logger;
@@ -7386,10 +7749,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7386
7749
  execute: (context: {
7387
7750
  data: CURRENT_DATA;
7388
7751
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7389
- getStepData: (stepId: string) => {
7390
- input: any;
7391
- output: any;
7392
- } | undefined;
7752
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7393
7753
  suspend: (reason?: string, suspendData?: z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7394
7754
  resumeData?: z.infer<RESUME_SCHEMA>;
7395
7755
  logger: Logger;
@@ -7402,6 +7762,38 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7402
7762
  suspendSchema?: z.ZodTypeAny;
7403
7763
  resumeSchema?: z.ZodTypeAny;
7404
7764
  }): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7765
+ /**
7766
+ * Add a guardrail step to validate or sanitize data
7767
+ */
7768
+ andGuardrail(config: WorkflowStepGuardrailConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7769
+ /**
7770
+ * Add a sleep step to the workflow
7771
+ */
7772
+ andSleep(config: WorkflowStepSleepConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7773
+ /**
7774
+ * Add a sleep-until step to the workflow
7775
+ */
7776
+ andSleepUntil(config: WorkflowStepSleepUntilConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7777
+ /**
7778
+ * Add a branching step that runs all matching branches
7779
+ */
7780
+ andBranch<NEW_DATA>(config: WorkflowStepBranchConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, Array<NEW_DATA | undefined>, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7781
+ /**
7782
+ * Add a foreach step that runs a step for each item in an array
7783
+ */
7784
+ andForEach<ITEM, NEW_DATA>(config: WorkflowStepForEachConfig<WorkflowInput<INPUT_SCHEMA>, ITEM, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, NEW_DATA[], SUSPEND_SCHEMA, RESUME_SCHEMA>;
7785
+ /**
7786
+ * Add a do-while loop step
7787
+ */
7788
+ andDoWhile<NEW_DATA>(config: WorkflowStepLoopConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, NEW_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7789
+ /**
7790
+ * Add a do-until loop step
7791
+ */
7792
+ andDoUntil<NEW_DATA>(config: WorkflowStepLoopConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, NEW_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7793
+ /**
7794
+ * Add a mapping step to the workflow
7795
+ */
7796
+ andMap<MAP extends Record<string, WorkflowStepMapEntry<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>>>(config: WorkflowStepMapConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, MAP>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, WorkflowStepMapResult<MAP>, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7405
7797
  /**
7406
7798
  * Add a workflow step to the workflow
7407
7799
  *
@@ -7447,11 +7839,11 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7447
7839
  * {
7448
7840
  * id: "generate-recommendations",
7449
7841
  * execute: async ({ data }) => {
7450
- * const result = await agent.generateObject(
7842
+ * const result = await agent.generateText(
7451
7843
  * `Generate recommendations for user ${data.userId}`,
7452
- * z.object({ recommendations: z.array(z.string()) })
7844
+ * { output: Output.object({ schema: z.object({ recommendations: z.array(z.string()) }) }) }
7453
7845
  * );
7454
- * return result.object;
7846
+ * return result.output;
7455
7847
  * }
7456
7848
  * }
7457
7849
  * ]
@@ -7497,11 +7889,15 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7497
7889
  * {
7498
7890
  * id: "ai-fallback",
7499
7891
  * execute: async ({ data }) => {
7500
- * const result = await agent.generateObject(
7892
+ * const result = await agent.generateText(
7501
7893
  * `Generate fallback response for: ${data.query}`,
7502
- * z.object({ source: z.literal("ai"), result: z.string() })
7894
+ * {
7895
+ * output: Output.object({
7896
+ * schema: z.object({ source: z.literal("ai"), result: z.string() }),
7897
+ * }),
7898
+ * }
7503
7899
  * );
7504
- * return result.object;
7900
+ * return result.output;
7505
7901
  * }
7506
7902
  * }
7507
7903
  * ]
@@ -10642,9 +11038,17 @@ declare enum NodeType {
10642
11038
  WORKFLOW_STEP = "workflow_step",
10643
11039
  WORKFLOW_AGENT_STEP = "workflow_agent_step",
10644
11040
  WORKFLOW_FUNC_STEP = "workflow_func_step",
11041
+ WORKFLOW_TAP_STEP = "workflow_tap_step",
11042
+ WORKFLOW_WORKFLOW_STEP = "workflow_workflow_step",
10645
11043
  WORKFLOW_CONDITIONAL_STEP = "workflow_conditional_step",
10646
11044
  WORKFLOW_PARALLEL_ALL_STEP = "workflow_parallel_all_step",
10647
- WORKFLOW_PARALLEL_RACE_STEP = "workflow_parallel_race_step"
11045
+ WORKFLOW_PARALLEL_RACE_STEP = "workflow_parallel_race_step",
11046
+ WORKFLOW_SLEEP_STEP = "workflow_sleep_step",
11047
+ WORKFLOW_SLEEP_UNTIL_STEP = "workflow_sleep_until_step",
11048
+ WORKFLOW_FOREACH_STEP = "workflow_foreach_step",
11049
+ WORKFLOW_LOOP_STEP = "workflow_loop_step",
11050
+ WORKFLOW_BRANCH_STEP = "workflow_branch_step",
11051
+ WORKFLOW_MAP_STEP = "workflow_map_step"
10648
11052
  }
10649
11053
  /**
10650
11054
  * Standard node ID creation function
@@ -10663,7 +11067,7 @@ declare const getNodeTypeFromNodeId: (nodeId: string) => NodeType | null;
10663
11067
  /**
10664
11068
  * Workflow step types enum
10665
11069
  */
10666
- type WorkflowStepType = "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race";
11070
+ type WorkflowStepType = "agent" | "func" | "tap" | "workflow" | "conditional-when" | "parallel-all" | "parallel-race" | "sleep" | "sleep-until" | "foreach" | "loop" | "branch" | "map";
10667
11071
  /**
10668
11072
  * Create a workflow step node ID with consistent pattern
10669
11073
  * @param stepType Type of workflow step
@@ -11386,4 +11790,4 @@ declare class VoltAgent {
11386
11790
  */
11387
11791
  declare function convertUsage(usage: LanguageModelUsage | undefined): UsageInfo | undefined;
11388
11792
 
11389
- export { A2AServerRegistry, AbortError, Agent, type AgentEvalConfig, type AgentEvalContext, type AgentEvalOperationType, type AgentEvalPayload, type AgentEvalResult, type AgentEvalSamplingPolicy, type AgentEvalScorerConfig, type AgentEvalScorerFactory, type AgentEvalScorerReference, type AgentFullState, type AgentHookOnEnd, type AgentHookOnError, type AgentHookOnHandoff, type AgentHookOnHandoffComplete, type AgentHookOnPrepareMessages, type AgentHookOnPrepareModelMessages, type AgentHookOnStart, type AgentHookOnStepFinish, type AgentHookOnToolEnd, type AgentHookOnToolStart, type AgentHooks, type AgentOptions, AgentRegistry, type AgentResponse, type AgentScorerState, type AgentStatus, type AgentSummarizationOptions, type AgentTool, AiSdkEmbeddingAdapter, type AllowedVariableValue, type ApiToolInfo, type BaseEventMetadata, type BaseGenerationOptions, type BaseLLMOptions, type BaseMessage, BaseRetriever, type BaseTool, type BaseToolCall, type BuildScorerOptions, type BuildScorerRunArgs, type BuildScorerRunResult, type BuilderAnalyzeContext, type BuilderPrepareContext, type BuilderReasonContext, type BuilderScoreContext, type CachedPrompt, type ChatMessage, ClientHTTPError, type ClientSideToolResult, type CloudflareFetchHandler, CompositeFilesystemBackend, type Conversation, ConversationAlreadyExistsError, ConversationNotFoundError, type ConversationQueryOptions, type ConversationQueryOptions as ConversationQueryOptionsV2, type ConversationStepRecord, type ConversationStepType, ConversationTodoBackend, type Conversation as ConversationV2, type CreateConversationInput, type CreateConversationInput as CreateConversationInputV2, type CreateInputGuardrailOptions, type CreateOutputGuardrailOptions, type CreateReasoningToolsOptions, type CreateScorerOptions, DEFAULT_INSTRUCTIONS, type DataContent, type Document, type DynamicValue, type DynamicValueOptions, EDIT_FILE_TOOL_DESCRIPTION, type EditResult, type EmbeddingAdapter$1 as EmbeddingAdapter, EmbeddingAdapterNotConfiguredError, EmbeddingError, type ExtractVariableNames, FEW_SHOT_EXAMPLES, FILESYSTEM_SYSTEM_PROMPT, type FileData, type FileInfo, type FilesystemBackend, type FilesystemBackendContext, type FilesystemBackendFactory, type FilesystemToolkitOptions, GLOB_TOOL_DESCRIPTION, GREP_TOOL_DESCRIPTION, type GenerateObjectOptions, type GenerateObjectResultWithContext, type GenerateObjectSubAgentConfig, type GenerateReasonResult, type GenerateScoreResult, type GenerateScoreStep, type GenerateTextOptions, type GenerateTextResultWithContext, type GenerateTextSubAgentConfig, type GetConversationStepsOptions, type GetMessagesOptions, type GrepMatch, type GuardrailAction, type GuardrailContext, type GuardrailDefinition, type GuardrailFunction, type GuardrailSeverity, type IServerProvider, type IServerlessProvider, type VoltOpsClient$1 as IVoltOpsClient, InMemoryFilesystemBackend, InMemoryStorageAdapter$1 as InMemoryObservabilityAdapter, InMemoryStorageAdapter, InMemoryVectorAdapter, type InferGenerateObjectResponse, type InferGenerateTextResponse, type InferMessage, type InferModel, type InferProviderParams, type InferStreamResponse, type InferTool, type InputGuardrail, type InputGuardrailArgs, type InputGuardrailResult, type KnowledgeBaseTagFilter, type LLMProvider, LS_TOOL_DESCRIPTION, LazyRemoteExportProcessor, type LocalScorerDefinition, type LocalScorerExecutionResult, LocalStorageSpanProcessor, type LogFilter, LoggerProxy, type MCPAuthorizationAction, type MCPAuthorizationConfig, type MCPAuthorizationContext, MCPAuthorizationError, type MCPCanFunction, type MCPCanParams, type MCPCanResult, MCPClient, type MCPClientCallOptions, type MCPClientConfig, MCPConfiguration, type MCPConfigurationOptions, type MCPElicitationAdapter, type MCPElicitationHandler, type MCPLoggingAdapter, type MCPPromptsAdapter, type MCPResourcesAdapter, MCPServerRegistry, type ManagedMemoryAddMessageInput, type ManagedMemoryAddMessagesInput, type ManagedMemoryClearMessagesInput, type ManagedMemoryConnectionInfo, type ManagedMemoryConversationsClient, type ManagedMemoryCredentialCreateResult, type ManagedMemoryCredentialListResult, type ManagedMemoryCredentialSummary, type ManagedMemoryDatabaseSummary, type ManagedMemoryGetMessagesInput, type ManagedMemoryMessagesClient, type ManagedMemoryQueryWorkflowRunsInput, type ManagedMemorySetWorkingMemoryInput, type ManagedMemoryStatus, type ManagedMemoryUpdateConversationInput, type ManagedMemoryVoltOpsClient, type ManagedMemoryWorkflowStateUpdateInput, type ManagedMemoryWorkflowStatesClient, type ManagedMemoryWorkingMemoryClient, type ManagedMemoryWorkingMemoryInput, Memory, type MemoryConfig, type MemoryOptions, type MemoryStorageMetadata, type MemoryUpdateMode, Memory as MemoryV2, MemoryV2Error, type MessageContent, MessageContentBuilder, type MessageRole, type ModelToolCall, NextAction, NodeFilesystemBackend, NodeType, VoltAgentObservability$1 as NodeVoltAgentObservability, type ObservabilityConfig, type ObservabilityLogRecord, type ObservabilitySpan, type ObservabilityStorageAdapter, type ObservabilityWebSocketEvent, type OnEndHookArgs, type OnErrorHookArgs, type OnHandoffCompleteHookArgs, type OnHandoffHookArgs, type OnPrepareMessagesHookArgs, type OnPrepareMessagesHookResult, type OnPrepareModelMessagesHookArgs, type OnPrepareModelMessagesHookResult, type OnStartHookArgs, type OnStepFinishHookArgs, type OnToolEndHookArgs, type OnToolStartHookArgs, type OperationContext, type OutputGuardrail, type OutputGuardrailArgs, type OutputGuardrailResult, type OutputSpec, type PackageUpdateInfo, PlanAgent, type PlanAgentExtension, type PlanAgentExtensionContext, type PlanAgentExtensionResult, type PlanAgentFileData, type PlanAgentOptions, type PlanAgentState, type PlanAgentSubagentDefinition, type PlanAgentTodoItem, type PlanAgentTodoStatus, type PlanningToolkitOptions, type PromptApiClient, type PromptApiResponse, type PromptContent, type PromptCreator, type PromptHelper, type PromptReference, type PromptTemplate, type ProviderObjectResponse, type ProviderObjectStreamResponse, type ProviderParams, type ProviderResponse, type ProviderTextResponse, type ProviderTextStreamResponse, type ProviderTool, READ_FILE_TOOL_DESCRIPTION, type RagKnowledgeBaseSummary, type RagSearchKnowledgeBaseChildChunk, type RagSearchKnowledgeBaseRequest, type RagSearchKnowledgeBaseResponse, type RagSearchKnowledgeBaseResult, type ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, type RegisteredTrigger, type RegisteredWorkflow, type RemoteLogExportConfig, RemoteLogProcessor, type ResumableStreamAdapter, type ResumableStreamContext, type RetrieveOptions, type Retriever, type RetrieverOptions, type RunLocalScorersArgs, type RunLocalScorersResult, SERVERLESS_ENV_CONTEXT_KEY, type SamplingMetadata, type SamplingPolicy, type ScorerBuilder, type ScorerContext, type ScorerLifecycleScope, type ScorerPipelineContext, type ScorerReasonContext, type ScorerResult, type SearchOptions, type SearchResult, type ServerAgentResponse, type ServerApiResponse, type ServerProviderDeps, type ServerProviderFactory, type ServerWorkflowResponse, type ServerlessProviderFactory, type ServerlessRemoteEndpointConfig, type ServerlessRemoteExportConfig, type ServerlessRequestHandler, ServerlessVoltAgentObservability, type SpanAttributes, type SpanEvent, type SpanFilterConfig, SpanFilterProcessor, SpanKind, type SpanLink, type SpanStatus, SpanStatusCode, type SpanTreeNode, type StepChunkCallback, type StepFinishCallback, type StepWithContent, type StopWhen, type StorageAdapter, StorageError, StorageLogProcessor, type StoredUIMessage, type StreamObjectFinishResult, type StreamObjectOnFinishCallback, type StreamObjectOptions, type StreamObjectResultWithContext, type StreamObjectSubAgentConfig, type StreamPart, type StreamTextFinishResult, type StreamTextOnFinishCallback, type StreamTextOptions, type StreamTextResultWithContext, type StreamTextSubAgentConfig, type SubAgentConfig, type SubAgentMethod, type SubAgentStateData, type SupervisorConfig, TRIGGER_CONTEXT_KEY, type TaskToolOptions, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, type TodoBackend, type TodoBackendFactory, Tool, type ToolCall, type ToolContext, ToolDeniedError, type ToolErrorInfo, type ToolExecuteOptions, ToolManager, type ToolOptions, type ToolResultOutput, type ToolSchema, type ToolStatus, type ToolStatusInfo, type ToolWithNodeId, type Toolkit, type TriggerHandler, type TriggerHandlerBody, type TriggerHandlerContext, type TriggerHandlerResponse, type TriggerHandlerResult, type TriggerHandlerReturn, type TriggerHttpMethod, TriggerRegistry, type Usage, type UsageInfo, UserInputBridge, type UserInputHandler, type VectorAdapter, VectorAdapterNotConfiguredError, VectorError, type VectorItem, type VectorSearchOptions, type Voice, type VoiceEventData, type VoiceEventType, type VoiceMetadata, type VoiceOptions, VoltAgent, VoltAgentError, VoltAgentObservability, type VoltAgentOptions, VoltAgentRagRetriever, type VoltAgentRagRetrieverOptions, type VoltAgentStreamTextResult, type VoltAgentTextStreamPart, type VoltAgentTriggerConfig, type VoltAgentTriggersConfig, type VoltOpsActionExecutionResult, type VoltOpsActionsApi, VoltOpsActionsClient, type VoltOpsActionsTransport, type VoltOpsAirtableCreateRecordParams, type VoltOpsAirtableCredential, type VoltOpsAirtableDeleteRecordParams, type VoltOpsAirtableGetRecordParams, type VoltOpsAirtableListRecordsParams, type VoltOpsAirtableUpdateRecordParams, type VoltOpsAppendEvalRunResultPayload, type VoltOpsAppendEvalRunResultsRequest, VoltOpsClient, type VoltOpsClientOptions, type VoltOpsCompleteEvalRunRequest, type VoltOpsCreateEvalRunRequest, type VoltOpsCreateScorerRequest, type VoltOpsDiscordChannelMessageParams, type VoltOpsDiscordChannelType, type VoltOpsDiscordConfig, type VoltOpsDiscordCreateChannelParams, type VoltOpsDiscordCredential, type VoltOpsDiscordDeleteChannelParams, type VoltOpsDiscordGetChannelParams, type VoltOpsDiscordListChannelsParams, type VoltOpsDiscordListMembersParams, type VoltOpsDiscordListMessagesParams, type VoltOpsDiscordMemberRoleParams, type VoltOpsDiscordReactionParams, type VoltOpsDiscordSendMessageParams, type VoltOpsDiscordSendWebhookMessageParams, type VoltOpsDiscordUpdateChannelParams, type VoltOpsEvalResultStatus, type VoltOpsEvalRunCompletionSummaryPayload, type VoltOpsEvalRunErrorPayload, type VoltOpsEvalRunResultLiveMetadata, type VoltOpsEvalRunResultScorePayload, type VoltOpsEvalRunStatus, type VoltOpsEvalRunSummary, VoltOpsPromptApiClient, type VoltOpsPromptManager, VoltOpsPromptManagerImpl, type VoltOpsScorerSummary, type VoltOpsSlackCredential, type VoltOpsSlackDeleteMessageParams, type VoltOpsSlackPostMessageParams, type VoltOpsSlackSearchMessagesParams, type VoltOpsTerminalEvalRunStatus, type VoltOpsTriggerDefinition, VoltOpsTriggerDefinitions, type VoltOpsTriggerEnvelope, type VoltOpsTriggerGroupMap, type VoltOpsTriggerName, VoltOpsTriggerNames, WRITE_FILE_TOOL_DESCRIPTION, WRITE_TODOS_TOOL_DESCRIPTION, WRITE_TODOS_TOOL_NAME, WebSocketEventEmitter, WebSocketLogProcessor, WebSocketSpanProcessor, type WeightedBlendComponent, type WeightedBlendOptions, type Workflow, type WorkflowConfig, type WorkflowExecutionContext, WorkflowRegistry, type WorkflowRunQuery, type WorkflowStateEntry, type WorkflowStats, type WorkflowStepContext, type WorkflowStepType, type WorkflowTimelineEvent, type WorkingMemoryConfig, type WorkingMemoryScope, type WorkingMemorySummary, type WorkingMemoryUpdateOptions, type WriteResult, addTimestampToMessage, andAgent, andAll, andRace, andTap, andThen, andWhen, andWorkflow, appendToMessage, buildRetrieverLogMessage, buildSamplingMetadata, buildScorer, buildSpanTree, checkForUpdates, convertUsage, cosineSimilarity, createDefaultInputSafetyGuardrails, createDefaultPIIGuardrails, createDefaultSafetyGuardrails, createEmailRedactorGuardrail, createFilesystemToolkit, createHTMLSanitizerInputGuardrail, createHooks, createInputGuardrail, createInputLengthGuardrail, createMaxLengthGuardrail, createNodeId, createOutputGuardrail, createPIIInputGuardrail, createPhoneNumberGuardrail, createPlanningToolkit, createProfanityGuardrail, createProfanityInputGuardrail, createPrompt, createPromptInjectionGuardrail, createReasoningTools, createRetrieverTool, createScorer, createSensitiveNumberGuardrail, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolResultEvictor, createToolkit, createTriggers, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, defineVoltOpsTrigger, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, getGlobalVoltOpsClient, getNodeTypeFromNodeId, getVoltOpsTriggerDefinition, getWorkflowStepNodeType, hasContent, hasFilePart, hasImagePart, hasTextPart, isAbortError, isNodeRuntime, isServerlessRuntime, isStructuredContent, isTextContent, isVoltAgentError, mapMessageContent, messageHelpers, normalizeContent, normalizeScorerResult, normalizeToArray, prependToMessage, readableLogRecordToObservabilityLog, readableSpanToObservabilitySpan, runLocalScorers, safeJsonParse, serializeValueForDebug, setWaitUntil, shouldSample, tool, transformTextContent, updateAllPackages, updateSinglePackage, weightedBlend, zodSchemaToJsonUI };
11793
+ export { A2AServerRegistry, AbortError, Agent, type AgentEvalConfig, type AgentEvalContext, type AgentEvalOperationType, type AgentEvalPayload, type AgentEvalResult, type AgentEvalSamplingPolicy, type AgentEvalScorerConfig, type AgentEvalScorerFactory, type AgentEvalScorerReference, type AgentFullState, type AgentHookOnEnd, type AgentHookOnError, type AgentHookOnHandoff, type AgentHookOnHandoffComplete, type AgentHookOnPrepareMessages, type AgentHookOnPrepareModelMessages, type AgentHookOnStart, type AgentHookOnStepFinish, type AgentHookOnToolEnd, type AgentHookOnToolStart, type AgentHooks, type AgentOptions, AgentRegistry, type AgentResponse, type AgentScorerState, type AgentStatus, type AgentSummarizationOptions, type AgentTool, AiSdkEmbeddingAdapter, type AllowedVariableValue, type ApiToolInfo, type BaseEventMetadata, type BaseGenerationOptions, type BaseLLMOptions, type BaseMessage, BaseRetriever, type BaseTool, type BaseToolCall, type BuildScorerOptions, type BuildScorerRunArgs, type BuildScorerRunResult, type BuilderAnalyzeContext, type BuilderPrepareContext, type BuilderReasonContext, type BuilderScoreContext, type CachedPrompt, type ChatMessage, ClientHTTPError, type ClientSideToolResult, type CloudflareFetchHandler, CompositeFilesystemBackend, type Conversation, ConversationAlreadyExistsError, ConversationNotFoundError, type ConversationQueryOptions, type ConversationQueryOptions as ConversationQueryOptionsV2, type ConversationStepRecord, type ConversationStepType, ConversationTodoBackend, type Conversation as ConversationV2, type CreateConversationInput, type CreateConversationInput as CreateConversationInputV2, type CreateInputGuardrailOptions, type CreateOutputGuardrailOptions, type CreateReasoningToolsOptions, type CreateScorerOptions, DEFAULT_INSTRUCTIONS, type DataContent, type Document, type DynamicValue, type DynamicValueOptions, EDIT_FILE_TOOL_DESCRIPTION, type EditResult, type EmbeddingAdapter$1 as EmbeddingAdapter, EmbeddingAdapterNotConfiguredError, EmbeddingError, type ExtractVariableNames, FEW_SHOT_EXAMPLES, FILESYSTEM_SYSTEM_PROMPT, type FileData, type FileInfo, type FilesystemBackend, type FilesystemBackendContext, type FilesystemBackendFactory, type FilesystemToolkitOptions, GLOB_TOOL_DESCRIPTION, GREP_TOOL_DESCRIPTION, type GenerateObjectOptions, type GenerateObjectResultWithContext, type GenerateObjectSubAgentConfig, type GenerateReasonResult, type GenerateScoreResult, type GenerateScoreStep, type GenerateTextOptions, type GenerateTextResultWithContext, type GenerateTextSubAgentConfig, type GetConversationStepsOptions, type GetMessagesOptions, type GrepMatch, type GuardrailAction, type GuardrailContext, type GuardrailDefinition, type GuardrailFunction, type GuardrailSeverity, type IServerProvider, type IServerlessProvider, type VoltOpsClient$1 as IVoltOpsClient, InMemoryFilesystemBackend, InMemoryStorageAdapter$1 as InMemoryObservabilityAdapter, InMemoryStorageAdapter, InMemoryVectorAdapter, type InferGenerateObjectResponse, type InferGenerateTextResponse, type InferMessage, type InferModel, type InferProviderParams, type InferStreamResponse, type InferTool, type InputGuardrail, type InputGuardrailArgs, type InputGuardrailResult, type KnowledgeBaseTagFilter, type LLMProvider, LS_TOOL_DESCRIPTION, LazyRemoteExportProcessor, type LocalScorerDefinition, type LocalScorerExecutionResult, LocalStorageSpanProcessor, type LogFilter, LoggerProxy, type MCPAuthorizationAction, type MCPAuthorizationConfig, type MCPAuthorizationContext, MCPAuthorizationError, type MCPCanFunction, type MCPCanParams, type MCPCanResult, MCPClient, type MCPClientCallOptions, type MCPClientConfig, MCPConfiguration, type MCPConfigurationOptions, type MCPElicitationAdapter, type MCPElicitationHandler, type MCPLoggingAdapter, type MCPPromptsAdapter, type MCPResourcesAdapter, MCPServerRegistry, type ManagedMemoryAddMessageInput, type ManagedMemoryAddMessagesInput, type ManagedMemoryClearMessagesInput, type ManagedMemoryConnectionInfo, type ManagedMemoryConversationsClient, type ManagedMemoryCredentialCreateResult, type ManagedMemoryCredentialListResult, type ManagedMemoryCredentialSummary, type ManagedMemoryDatabaseSummary, type ManagedMemoryGetMessagesInput, type ManagedMemoryMessagesClient, type ManagedMemoryQueryWorkflowRunsInput, type ManagedMemorySetWorkingMemoryInput, type ManagedMemoryStatus, type ManagedMemoryUpdateConversationInput, type ManagedMemoryVoltOpsClient, type ManagedMemoryWorkflowStateUpdateInput, type ManagedMemoryWorkflowStatesClient, type ManagedMemoryWorkingMemoryClient, type ManagedMemoryWorkingMemoryInput, Memory, type MemoryConfig, type MemoryOptions, type MemoryStorageMetadata, type MemoryUpdateMode, Memory as MemoryV2, MemoryV2Error, type MessageContent, MessageContentBuilder, type MessageRole, type ModelToolCall, NextAction, NodeFilesystemBackend, NodeType, VoltAgentObservability$1 as NodeVoltAgentObservability, type ObservabilityConfig, type ObservabilityLogRecord, type ObservabilitySpan, type ObservabilityStorageAdapter, type ObservabilityWebSocketEvent, type OnEndHookArgs, type OnErrorHookArgs, type OnHandoffCompleteHookArgs, type OnHandoffHookArgs, type OnPrepareMessagesHookArgs, type OnPrepareMessagesHookResult, type OnPrepareModelMessagesHookArgs, type OnPrepareModelMessagesHookResult, type OnStartHookArgs, type OnStepFinishHookArgs, type OnToolEndHookArgs, type OnToolStartHookArgs, type OperationContext, type OutputGuardrail, type OutputGuardrailArgs, type OutputGuardrailResult, type OutputSpec, type PackageUpdateInfo, PlanAgent, type PlanAgentExtension, type PlanAgentExtensionContext, type PlanAgentExtensionResult, type PlanAgentFileData, type PlanAgentOptions, type PlanAgentState, type PlanAgentSubagentDefinition, type PlanAgentTodoItem, type PlanAgentTodoStatus, type PlanningToolkitOptions, type PromptApiClient, type PromptApiResponse, type PromptContent, type PromptCreator, type PromptHelper, type PromptReference, type PromptTemplate, type ProviderObjectResponse, type ProviderObjectStreamResponse, type ProviderParams, type ProviderResponse, type ProviderTextResponse, type ProviderTextStreamResponse, type ProviderTool, READ_FILE_TOOL_DESCRIPTION, type RagKnowledgeBaseSummary, type RagSearchKnowledgeBaseChildChunk, type RagSearchKnowledgeBaseRequest, type RagSearchKnowledgeBaseResponse, type RagSearchKnowledgeBaseResult, type ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, type RegisteredTrigger, type RegisteredWorkflow, type RemoteLogExportConfig, RemoteLogProcessor, type ResumableStreamAdapter, type ResumableStreamContext, type RetrieveOptions, type Retriever, type RetrieverOptions, type RunLocalScorersArgs, type RunLocalScorersResult, SERVERLESS_ENV_CONTEXT_KEY, type SamplingMetadata, type SamplingPolicy, type ScorerBuilder, type ScorerContext, type ScorerLifecycleScope, type ScorerPipelineContext, type ScorerReasonContext, type ScorerResult, type SearchOptions, type SearchResult, type ServerAgentResponse, type ServerApiResponse, type ServerProviderDeps, type ServerProviderFactory, type ServerWorkflowResponse, type ServerlessProviderFactory, type ServerlessRemoteEndpointConfig, type ServerlessRemoteExportConfig, type ServerlessRequestHandler, ServerlessVoltAgentObservability, type SpanAttributes, type SpanEvent, type SpanFilterConfig, SpanFilterProcessor, SpanKind, type SpanLink, type SpanStatus, SpanStatusCode, type SpanTreeNode, type StepChunkCallback, type StepFinishCallback, type StepWithContent, type StopWhen, type StorageAdapter, StorageError, StorageLogProcessor, type StoredUIMessage, type StreamObjectFinishResult, type StreamObjectOnFinishCallback, type StreamObjectOptions, type StreamObjectResultWithContext, type StreamObjectSubAgentConfig, type StreamPart, type StreamTextFinishResult, type StreamTextOnFinishCallback, type StreamTextOptions, type StreamTextResultWithContext, type StreamTextSubAgentConfig, type SubAgentConfig, type SubAgentMethod, type SubAgentStateData, type SupervisorConfig, TRIGGER_CONTEXT_KEY, type TaskToolOptions, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, type TodoBackend, type TodoBackendFactory, Tool, type ToolCall, type ToolContext, ToolDeniedError, type ToolErrorInfo, type ToolExecuteOptions, ToolManager, type ToolOptions, type ToolResultOutput, type ToolSchema, type ToolStatus, type ToolStatusInfo, type ToolWithNodeId, type Toolkit, type TriggerHandler, type TriggerHandlerBody, type TriggerHandlerContext, type TriggerHandlerResponse, type TriggerHandlerResult, type TriggerHandlerReturn, type TriggerHttpMethod, TriggerRegistry, type Usage, type UsageInfo, UserInputBridge, type UserInputHandler, type VectorAdapter, VectorAdapterNotConfiguredError, VectorError, type VectorItem, type VectorSearchOptions, type Voice, type VoiceEventData, type VoiceEventType, type VoiceMetadata, type VoiceOptions, VoltAgent, VoltAgentError, VoltAgentObservability, type VoltAgentOptions, VoltAgentRagRetriever, type VoltAgentRagRetrieverOptions, type VoltAgentStreamTextResult, type VoltAgentTextStreamPart, type VoltAgentTriggerConfig, type VoltAgentTriggersConfig, type VoltOpsActionExecutionResult, type VoltOpsActionsApi, VoltOpsActionsClient, type VoltOpsActionsTransport, type VoltOpsAirtableCreateRecordParams, type VoltOpsAirtableCredential, type VoltOpsAirtableDeleteRecordParams, type VoltOpsAirtableGetRecordParams, type VoltOpsAirtableListRecordsParams, type VoltOpsAirtableUpdateRecordParams, type VoltOpsAppendEvalRunResultPayload, type VoltOpsAppendEvalRunResultsRequest, VoltOpsClient, type VoltOpsClientOptions, type VoltOpsCompleteEvalRunRequest, type VoltOpsCreateEvalRunRequest, type VoltOpsCreateScorerRequest, type VoltOpsDiscordChannelMessageParams, type VoltOpsDiscordChannelType, type VoltOpsDiscordConfig, type VoltOpsDiscordCreateChannelParams, type VoltOpsDiscordCredential, type VoltOpsDiscordDeleteChannelParams, type VoltOpsDiscordGetChannelParams, type VoltOpsDiscordListChannelsParams, type VoltOpsDiscordListMembersParams, type VoltOpsDiscordListMessagesParams, type VoltOpsDiscordMemberRoleParams, type VoltOpsDiscordReactionParams, type VoltOpsDiscordSendMessageParams, type VoltOpsDiscordSendWebhookMessageParams, type VoltOpsDiscordUpdateChannelParams, type VoltOpsEvalResultStatus, type VoltOpsEvalRunCompletionSummaryPayload, type VoltOpsEvalRunErrorPayload, type VoltOpsEvalRunResultLiveMetadata, type VoltOpsEvalRunResultScorePayload, type VoltOpsEvalRunStatus, type VoltOpsEvalRunSummary, VoltOpsPromptApiClient, type VoltOpsPromptManager, VoltOpsPromptManagerImpl, type VoltOpsScorerSummary, type VoltOpsSlackCredential, type VoltOpsSlackDeleteMessageParams, type VoltOpsSlackPostMessageParams, type VoltOpsSlackSearchMessagesParams, type VoltOpsTerminalEvalRunStatus, type VoltOpsTriggerDefinition, VoltOpsTriggerDefinitions, type VoltOpsTriggerEnvelope, type VoltOpsTriggerGroupMap, type VoltOpsTriggerName, VoltOpsTriggerNames, WRITE_FILE_TOOL_DESCRIPTION, WRITE_TODOS_TOOL_DESCRIPTION, WRITE_TODOS_TOOL_NAME, WebSocketEventEmitter, WebSocketLogProcessor, WebSocketSpanProcessor, type WeightedBlendComponent, type WeightedBlendOptions, type Workflow, type WorkflowConfig, type WorkflowExecutionContext, WorkflowRegistry, type WorkflowRunQuery, type WorkflowStateEntry, type WorkflowStats, type WorkflowStepContext, type WorkflowStepType, type WorkflowTimelineEvent, type WorkingMemoryConfig, type WorkingMemoryScope, type WorkingMemorySummary, type WorkingMemoryUpdateOptions, type WriteResult, addTimestampToMessage, andAgent, andAll, andBranch, andDoUntil, andDoWhile, andForEach, andGuardrail, andMap, andRace, andSleep, andSleepUntil, andTap, andThen, andWhen, andWorkflow, appendToMessage, buildRetrieverLogMessage, buildSamplingMetadata, buildScorer, buildSpanTree, checkForUpdates, convertUsage, cosineSimilarity, createDefaultInputSafetyGuardrails, createDefaultPIIGuardrails, createDefaultSafetyGuardrails, createEmailRedactorGuardrail, createFilesystemToolkit, createHTMLSanitizerInputGuardrail, createHooks, createInputGuardrail, createInputLengthGuardrail, createMaxLengthGuardrail, createNodeId, createOutputGuardrail, createPIIInputGuardrail, createPhoneNumberGuardrail, createPlanningToolkit, createProfanityGuardrail, createProfanityInputGuardrail, createPrompt, createPromptInjectionGuardrail, createReasoningTools, createRetrieverTool, createScorer, createSensitiveNumberGuardrail, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolResultEvictor, createToolkit, createTriggers, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, defineVoltOpsTrigger, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, getGlobalVoltOpsClient, getNodeTypeFromNodeId, getVoltOpsTriggerDefinition, getWorkflowStepNodeType, hasContent, hasFilePart, hasImagePart, hasTextPart, isAbortError, isNodeRuntime, isServerlessRuntime, isStructuredContent, isTextContent, isVoltAgentError, mapMessageContent, messageHelpers, normalizeContent, normalizeScorerResult, normalizeToArray, prependToMessage, readableLogRecordToObservabilityLog, readableSpanToObservabilitySpan, runLocalScorers, safeJsonParse, serializeValueForDebug, setWaitUntil, shouldSample, tool, transformTextContent, updateAllPackages, updateSinglePackage, weightedBlend, zodSchemaToJsonUI };