@voltagent/core 2.0.8 → 2.0.10

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
@@ -16,7 +16,7 @@ import { DangerouslyAllowAny, PlainObject } from '@voltagent/internal/types';
16
16
  import * as TF from 'type-fest';
17
17
  import { A2AServerLike, A2AServerDeps, A2AServerMetadata, A2AServerFactory } from '@voltagent/internal/a2a';
18
18
  import { MCPServerLike, MCPServerDeps, MCPServerMetadata, MCPServerFactory } from '@voltagent/internal/mcp';
19
- import { ElicitRequest, ElicitResult, ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
19
+ import { ElicitRequest, ElicitResult, ClientCapabilities, ListResourcesResult } from '@modelcontextprotocol/sdk/types.js';
20
20
 
21
21
  /**
22
22
  * Represents a collection of related tools with optional shared instructions.
@@ -2698,6 +2698,12 @@ interface PromptContent {
2698
2698
  labels?: string[];
2699
2699
  /** Tags array for categorization */
2700
2700
  tags?: string[];
2701
+ /** Prompt source location (e.g., "local-file" or "online") */
2702
+ source?: "local-file" | "online";
2703
+ /** Latest online version when available */
2704
+ latest_version?: number;
2705
+ /** Whether the local prompt is older than the online version */
2706
+ outdated?: boolean;
2701
2707
  /** LLM configuration from prompt */
2702
2708
  config?: {
2703
2709
  model?: string;
@@ -3112,9 +3118,14 @@ declare class VoltOpsClient implements VoltOpsClient$1 {
3112
3118
  private getManagedMemoryConversationSteps;
3113
3119
  /**
3114
3120
  * Static method to create prompt helper with priority-based fallback
3115
- * Priority: Agent VoltOpsClient > Global VoltOpsClient > Fallback instructions
3121
+ * Priority: Local prompts > Agent VoltOpsClient > Global VoltOpsClient > Fallback instructions
3116
3122
  */
3117
3123
  static createPromptHelperWithFallback(agentId: string, agentName: string, fallbackInstructions: string, agentVoltOpsClient?: VoltOpsClient): PromptHelper;
3124
+ /**
3125
+ * Create a prompt helper from available sources without fallback instructions.
3126
+ * Priority: Local prompts > Agent VoltOpsClient > Global VoltOpsClient.
3127
+ */
3128
+ static createPromptHelperFromSources(agentId: string, agentVoltOpsClient?: VoltOpsClient): PromptHelper | undefined;
3118
3129
  /**
3119
3130
  * Cleanup resources when client is no longer needed
3120
3131
  */
@@ -4919,7 +4930,7 @@ type AgentOptions = {
4919
4930
  context?: ContextInput;
4920
4931
  eval?: AgentEvalConfig;
4921
4932
  };
4922
- type AgentEvalOperationType = "generateText" | "streamText" | "generateObject" | "streamObject";
4933
+ type AgentEvalOperationType = "generateText" | "streamText" | "generateObject" | "streamObject" | "workflow";
4923
4934
  interface AgentEvalPayload {
4924
4935
  operationId: string;
4925
4936
  operationType: AgentEvalOperationType;
@@ -5928,6 +5939,18 @@ interface WorkflowStreamResult<RESULT_SCHEMA extends z.ZodTypeAny, RESUME_SCHEMA
5928
5939
  */
5929
5940
  abort: () => void;
5930
5941
  }
5942
+ interface WorkflowRetryConfig {
5943
+ /**
5944
+ * Number of retry attempts for a step when it throws an error
5945
+ * @default 0
5946
+ */
5947
+ attempts?: number;
5948
+ /**
5949
+ * Delay in milliseconds between retry attempts
5950
+ * @default 0
5951
+ */
5952
+ delayMs?: number;
5953
+ }
5931
5954
  interface WorkflowRunOptions {
5932
5955
  /**
5933
5956
  * The active step, this can be used to track the current step in a workflow
@@ -5976,6 +5999,22 @@ interface WorkflowRunOptions {
5976
5999
  * If not provided, will use the workflow's logger or global logger
5977
6000
  */
5978
6001
  logger?: Logger;
6002
+ /**
6003
+ * Override retry settings for this workflow execution
6004
+ */
6005
+ retryConfig?: WorkflowRetryConfig;
6006
+ /**
6007
+ * Input guardrails to run before workflow execution
6008
+ */
6009
+ inputGuardrails?: InputGuardrail[];
6010
+ /**
6011
+ * Output guardrails to run after workflow execution
6012
+ */
6013
+ outputGuardrails?: OutputGuardrail<any>[];
6014
+ /**
6015
+ * Optional agent instance to supply to workflow guardrails
6016
+ */
6017
+ guardrailAgent?: Agent;
5979
6018
  }
5980
6019
  interface WorkflowResumeOptions {
5981
6020
  /**
@@ -6007,6 +6046,44 @@ interface WorkflowResumeOptions {
6007
6046
  * @param DATA - The type of the data
6008
6047
  * @param RESULT - The type of the result
6009
6048
  */
6049
+ type WorkflowHookStatus = "completed" | "suspended" | "cancelled" | "error";
6050
+ type WorkflowStepStatus = "running" | "success" | "error" | "suspended" | "cancelled" | "skipped";
6051
+ type WorkflowStepData = {
6052
+ input: DangerouslyAllowAny;
6053
+ output?: DangerouslyAllowAny;
6054
+ status: WorkflowStepStatus;
6055
+ error?: Error | null;
6056
+ };
6057
+ type WorkflowHookContext<DATA, RESULT> = {
6058
+ /**
6059
+ * Terminal status for the workflow execution
6060
+ */
6061
+ status: WorkflowHookStatus;
6062
+ /**
6063
+ * The current workflow state
6064
+ */
6065
+ state: WorkflowState<DATA, RESULT>;
6066
+ /**
6067
+ * Result of the workflow execution, if available
6068
+ */
6069
+ result: RESULT | null;
6070
+ /**
6071
+ * Error from the workflow execution, if any
6072
+ */
6073
+ error: unknown | null;
6074
+ /**
6075
+ * Suspension metadata when status is suspended
6076
+ */
6077
+ suspension?: WorkflowSuspensionMetadata;
6078
+ /**
6079
+ * Cancellation metadata when status is cancelled
6080
+ */
6081
+ cancellation?: WorkflowCancellationMetadata;
6082
+ /**
6083
+ * Step input/output snapshots keyed by step ID
6084
+ */
6085
+ steps: Record<string, WorkflowStepData>;
6086
+ };
6010
6087
  type WorkflowHooks<DATA, RESULT> = {
6011
6088
  /**
6012
6089
  * Called when the workflow starts
@@ -6027,11 +6104,30 @@ type WorkflowHooks<DATA, RESULT> = {
6027
6104
  */
6028
6105
  onStepEnd?: (state: WorkflowState<DATA, RESULT>) => Promise<void>;
6029
6106
  /**
6030
- * Called when the workflow ends
6107
+ * Called when the workflow is suspended
6108
+ * @param context - The terminal hook context
6109
+ * @returns void
6110
+ */
6111
+ onSuspend?: (context: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6112
+ /**
6113
+ * Called when the workflow ends with an error
6114
+ * @param context - The terminal hook context
6115
+ * @returns void
6116
+ */
6117
+ onError?: (context: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6118
+ /**
6119
+ * Called when the workflow reaches a terminal state
6120
+ * @param context - The terminal hook context
6121
+ * @returns void
6122
+ */
6123
+ onFinish?: (context: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6124
+ /**
6125
+ * Called when the workflow ends (completed, cancelled, or error)
6031
6126
  * @param state - The current state of the workflow
6127
+ * @param context - The terminal hook context
6032
6128
  * @returns void
6033
6129
  */
6034
- onEnd?: (state: WorkflowState<DATA, RESULT>) => Promise<void>;
6130
+ onEnd?: (state: WorkflowState<DATA, RESULT>, context?: WorkflowHookContext<DATA, RESULT>) => Promise<void>;
6035
6131
  };
6036
6132
  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
6133
  type WorkflowResult<RESULT_SCHEMA extends z.ZodTypeAny> = RESULT_SCHEMA extends z.ZodTypeAny ? z.infer<RESULT_SCHEMA> : RESULT_SCHEMA;
@@ -6083,6 +6179,22 @@ type WorkflowConfig<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema, RESULT
6083
6179
  * If not provided, will use global observability or create a default one
6084
6180
  */
6085
6181
  observability?: VoltAgentObservability;
6182
+ /**
6183
+ * Input guardrails to run before workflow execution
6184
+ */
6185
+ inputGuardrails?: InputGuardrail[];
6186
+ /**
6187
+ * Output guardrails to run after workflow execution
6188
+ */
6189
+ outputGuardrails?: OutputGuardrail<any>[];
6190
+ /**
6191
+ * Optional agent instance to supply to workflow guardrails
6192
+ */
6193
+ guardrailAgent?: Agent;
6194
+ /**
6195
+ * Default retry configuration for steps in this workflow
6196
+ */
6197
+ retryConfig?: WorkflowRetryConfig;
6086
6198
  };
6087
6199
  /**
6088
6200
  * A workflow instance that can be executed
@@ -6129,6 +6241,22 @@ type Workflow<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema, RESULT_SCHEM
6129
6241
  * Observability instance for OpenTelemetry integration
6130
6242
  */
6131
6243
  observability?: VoltAgentObservability;
6244
+ /**
6245
+ * Input guardrails configured for this workflow
6246
+ */
6247
+ inputGuardrails?: InputGuardrail[];
6248
+ /**
6249
+ * Output guardrails configured for this workflow
6250
+ */
6251
+ outputGuardrails?: OutputGuardrail<any>[];
6252
+ /**
6253
+ * Optional agent instance supplied to workflow guardrails
6254
+ */
6255
+ guardrailAgent?: Agent;
6256
+ /**
6257
+ * Default retry configuration for steps in this workflow
6258
+ */
6259
+ retryConfig?: WorkflowRetryConfig;
6132
6260
  /**
6133
6261
  * Get the full state of the workflow including all steps
6134
6262
  * @returns The serialized workflow state
@@ -6143,6 +6271,11 @@ type Workflow<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema, RESULT_SCHEM
6143
6271
  resultSchema?: DangerouslyAllowAny;
6144
6272
  suspendSchema?: DangerouslyAllowAny;
6145
6273
  resumeSchema?: DangerouslyAllowAny;
6274
+ retryConfig?: WorkflowRetryConfig;
6275
+ guardrails?: {
6276
+ inputCount: number;
6277
+ outputCount: number;
6278
+ };
6146
6279
  };
6147
6280
  /**
6148
6281
  * Execute the workflow with the given input
@@ -6223,7 +6356,7 @@ interface WorkflowStreamEvent {
6223
6356
  /**
6224
6357
  * Current status of the step/event
6225
6358
  */
6226
- status: "pending" | "running" | "success" | "error" | "suspended" | "cancelled";
6359
+ status: "pending" | "running" | "success" | "skipped" | "error" | "suspended" | "cancelled";
6227
6360
  /**
6228
6361
  * User context passed through the workflow
6229
6362
  */
@@ -6239,7 +6372,7 @@ interface WorkflowStreamEvent {
6239
6372
  /**
6240
6373
  * Step type for step events
6241
6374
  */
6242
- stepType?: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race" | "tap" | "workflow";
6375
+ stepType?: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race" | "tap" | "workflow" | "guardrail" | "sleep" | "sleep-until" | "foreach" | "loop" | "branch" | "map";
6243
6376
  /**
6244
6377
  * Additional metadata
6245
6378
  */
@@ -6334,6 +6467,15 @@ declare class WorkflowTraceContext {
6334
6467
  parentSpan: Span;
6335
6468
  childSpans: Span[];
6336
6469
  };
6470
+ /**
6471
+ * Create a generic child span under the workflow root or an optional parent span
6472
+ */
6473
+ createChildSpan(name: string, type: string, options?: {
6474
+ label?: string;
6475
+ attributes?: Record<string, any>;
6476
+ kind?: SpanKind$1;
6477
+ parentSpan?: Span;
6478
+ }): Span;
6337
6479
  /**
6338
6480
  * Record a suspension event on the workflow
6339
6481
  */
@@ -6354,6 +6496,10 @@ declare class WorkflowTraceContext {
6354
6496
  * Get the root span
6355
6497
  */
6356
6498
  getRootSpan(): Span;
6499
+ /**
6500
+ * Set input on the root span
6501
+ */
6502
+ setInput(input: any): void;
6357
6503
  /**
6358
6504
  * Set output on the root span
6359
6505
  */
@@ -6441,10 +6587,7 @@ interface WorkflowExecutionContext {
6441
6587
  * Map of executed step data (input and output) by step ID
6442
6588
  * Used for accessing previous step results
6443
6589
  */
6444
- stepData: Map<string, {
6445
- input: any;
6446
- output: any;
6447
- }>;
6590
+ stepData: Map<string, WorkflowStepData>;
6448
6591
  /**
6449
6592
  * Current event sequence number for this workflow execution
6450
6593
  * Used to maintain event ordering even after server restarts
@@ -6465,6 +6608,10 @@ interface WorkflowExecutionContext {
6465
6608
  * Manages span hierarchy and attributes for the workflow execution
6466
6609
  */
6467
6610
  traceContext?: WorkflowTraceContext;
6611
+ /**
6612
+ * Optional agent instance supplied to workflow guardrails
6613
+ */
6614
+ guardrailAgent?: Agent;
6468
6615
  /**
6469
6616
  * Current step span for passing to agents called within workflow steps
6470
6617
  * This enables agent spans to appear as children of workflow step spans
@@ -6477,7 +6624,7 @@ interface WorkflowExecutionContext {
6477
6624
  interface WorkflowStepContext {
6478
6625
  stepId: string;
6479
6626
  stepIndex: number;
6480
- stepType: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race";
6627
+ stepType: "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race" | "tap" | "workflow" | "guardrail" | "sleep" | "sleep-until" | "foreach" | "loop" | "branch" | "map";
6481
6628
  stepName: string;
6482
6629
  workflowId: string;
6483
6630
  executionId: string;
@@ -6506,14 +6653,12 @@ type InternalWorkflowStateParam<INPUT> = Omit<WorkflowState<INPUT, DangerouslyAl
6506
6653
  * @private - INTERNAL USE ONLY
6507
6654
  */
6508
6655
  interface WorkflowExecuteContext<INPUT, DATA, SUSPEND_DATA, RESUME_DATA> {
6509
- data: InternalExtractWorkflowInputData<DATA>;
6656
+ data: DATA;
6510
6657
  state: InternalWorkflowStateParam<INPUT>;
6511
- getStepData: (stepId: string) => {
6512
- input: any;
6513
- output: any;
6514
- } | undefined;
6658
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
6515
6659
  suspend: (reason?: string, suspendData?: SUSPEND_DATA) => Promise<never>;
6516
6660
  resumeData?: RESUME_DATA;
6661
+ retryCount?: number;
6517
6662
  /**
6518
6663
  * Logger instance for this workflow execution.
6519
6664
  * Provides execution-scoped logging with full context (userId, conversationId, executionId).
@@ -6545,6 +6690,10 @@ type InternalWorkflowStepConfig<T extends PlainObject = PlainObject> = {
6545
6690
  * Description of what the step does
6546
6691
  */
6547
6692
  purpose?: string;
6693
+ /**
6694
+ * Number of retry attempts when the step throws an error
6695
+ */
6696
+ retries?: number;
6548
6697
  } & T;
6549
6698
  /**
6550
6699
  * Base step interface for building new steps
@@ -6583,6 +6732,10 @@ interface InternalBaseWorkflowStep<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DAT
6583
6732
  * Optional resume data schema for this step
6584
6733
  */
6585
6734
  resumeSchema?: z.ZodTypeAny;
6735
+ /**
6736
+ * Number of retry attempts when the step throws an error
6737
+ */
6738
+ retries?: number;
6586
6739
  /**
6587
6740
  * Execute the step with the given context
6588
6741
  * @param context - The execution context containing data, state, and helpers
@@ -6660,6 +6813,15 @@ interface WorkflowStepWorkflow<INPUT, DATA, RESULT, SUSPEND_DATA, RESUME_DATA =
6660
6813
  type: "workflow";
6661
6814
  workflow: InternalWorkflow<INPUT, DATA, RESULT>;
6662
6815
  }
6816
+ type WorkflowStepGuardrailConfig<_INPUT, DATA> = InternalWorkflowStepConfig<{
6817
+ inputGuardrails?: InputGuardrail[];
6818
+ outputGuardrails?: OutputGuardrail<DATA>[];
6819
+ }>;
6820
+ interface WorkflowStepGuardrail<INPUT, DATA> extends InternalBaseWorkflowStep<INPUT, DATA, DATA, any, any> {
6821
+ type: "guardrail";
6822
+ inputGuardrails?: InputGuardrail[];
6823
+ outputGuardrails?: OutputGuardrail<DATA>[];
6824
+ }
6663
6825
  type WorkflowStepTapConfig<INPUT, DATA, _RESULT, SUSPEND_DATA, RESUME_DATA = any> = InternalWorkflowStepConfig<{
6664
6826
  execute: InternalWorkflowFunc<INPUT, DATA, DangerouslyAllowAny, SUSPEND_DATA, RESUME_DATA>;
6665
6827
  inputSchema?: z.ZodTypeAny;
@@ -6695,14 +6857,100 @@ interface WorkflowStepParallelAll<INPUT, DATA, RESULT> extends InternalBaseWorkf
6695
6857
  type: "parallel-all";
6696
6858
  steps: WorkflowStepParallelSteps<INPUT, DATA, RESULT> | WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT>;
6697
6859
  }
6860
+ type WorkflowStepSleepConfig<INPUT, DATA> = InternalWorkflowStepConfig<{
6861
+ duration: number | InternalWorkflowFunc<INPUT, DATA, number, any, any>;
6862
+ }>;
6863
+ interface WorkflowStepSleep<INPUT, DATA> extends InternalBaseWorkflowStep<INPUT, DATA, DATA, any, any> {
6864
+ type: "sleep";
6865
+ duration: number | InternalWorkflowFunc<INPUT, DATA, number, any, any>;
6866
+ }
6867
+ type WorkflowStepSleepUntilConfig<INPUT, DATA> = InternalWorkflowStepConfig<{
6868
+ date: Date | InternalWorkflowFunc<INPUT, DATA, Date, any, any>;
6869
+ }>;
6870
+ interface WorkflowStepSleepUntil<INPUT, DATA> extends InternalBaseWorkflowStep<INPUT, DATA, DATA, any, any> {
6871
+ type: "sleep-until";
6872
+ date: Date | InternalWorkflowFunc<INPUT, DATA, Date, any, any>;
6873
+ }
6874
+ type WorkflowStepForEachConfig<INPUT, ITEM, RESULT> = InternalWorkflowStepConfig<{
6875
+ step: InternalAnyWorkflowStep<INPUT, ITEM, RESULT>;
6876
+ concurrency?: number;
6877
+ }>;
6878
+ interface WorkflowStepForEach<INPUT, ITEM, RESULT> extends InternalBaseWorkflowStep<INPUT, ITEM[], RESULT[], any, any> {
6879
+ type: "foreach";
6880
+ step: InternalAnyWorkflowStep<INPUT, ITEM, RESULT>;
6881
+ concurrency?: number;
6882
+ }
6883
+ type WorkflowStepLoopConfig<INPUT, DATA, RESULT> = InternalWorkflowStepConfig<{
6884
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6885
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
6886
+ }>;
6887
+ interface WorkflowStepLoop<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, RESULT, any, any> {
6888
+ type: "loop";
6889
+ loopType: "dowhile" | "dountil";
6890
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6891
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
6892
+ }
6893
+ type WorkflowStepBranchConfig<INPUT, DATA, RESULT> = InternalWorkflowStepConfig<{
6894
+ branches: ReadonlyArray<{
6895
+ condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
6896
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6897
+ }>;
6898
+ }>;
6899
+ interface WorkflowStepBranch<INPUT, DATA, RESULT> extends InternalBaseWorkflowStep<INPUT, DATA, Array<RESULT | undefined>, any, any> {
6900
+ type: "branch";
6901
+ branches: ReadonlyArray<{
6902
+ condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
6903
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
6904
+ }>;
6905
+ }
6906
+ type WorkflowStepMapEntry<INPUT, DATA> = {
6907
+ source: "value";
6908
+ value: unknown;
6909
+ } | {
6910
+ source: "data";
6911
+ path?: string;
6912
+ } | {
6913
+ source: "input";
6914
+ path?: string;
6915
+ } | {
6916
+ source: "step";
6917
+ stepId: string;
6918
+ path?: string;
6919
+ } | {
6920
+ source: "context";
6921
+ key: string;
6922
+ path?: string;
6923
+ } | {
6924
+ source: "fn";
6925
+ fn: InternalWorkflowFunc<INPUT, DATA, unknown, any, any>;
6926
+ };
6927
+ type WorkflowStepMapEntryResult<ENTRY> = ENTRY extends {
6928
+ source: "value";
6929
+ value: infer VALUE;
6930
+ } ? VALUE : ENTRY extends {
6931
+ source: "fn";
6932
+ fn: (...args: any[]) => Promise<infer RESULT>;
6933
+ } ? RESULT : unknown;
6934
+ type WorkflowStepMapResult<MAP extends Record<string, WorkflowStepMapEntry<any, any>>> = {
6935
+ [KEY in keyof MAP]: WorkflowStepMapEntryResult<MAP[KEY]>;
6936
+ };
6937
+ type WorkflowStepMapConfig<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>> = InternalWorkflowStepConfig<{
6938
+ map: MAP;
6939
+ inputSchema?: z.ZodTypeAny;
6940
+ outputSchema?: z.ZodTypeAny;
6941
+ }>;
6942
+ interface WorkflowStepMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>> extends InternalBaseWorkflowStep<INPUT, DATA, WorkflowStepMapResult<MAP>, any, any> {
6943
+ type: "map";
6944
+ map: MAP;
6945
+ }
6698
6946
  type WorkflowStepParallelDynamicStepsFunc<INPUT, DATA, RESULT> = (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepParallelSteps<INPUT, DATA, RESULT>>;
6699
6947
  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>;
6948
+ 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
6949
  /**
6702
6950
  * Internal type to allow overriding the run method for the workflow
6703
6951
  */
6704
6952
  interface InternalWorkflow<_INPUT, DATA, RESULT> extends Omit<Workflow<DangerouslyAllowAny, DangerouslyAllowAny>, "run"> {
6705
- run: (input: InternalExtractWorkflowInputData<DATA>, options?: InternalWorkflowRunOptions) => Promise<{
6953
+ run: (input: DATA, options?: InternalWorkflowRunOptions) => Promise<{
6706
6954
  executionId: string;
6707
6955
  startAt: Date;
6708
6956
  endAt: Date;
@@ -6820,6 +7068,7 @@ declare function andAll<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Interna
6820
7068
  id: string;
6821
7069
  name: string;
6822
7070
  purpose: string;
7071
+ retries?: number;
6823
7072
  };
6824
7073
 
6825
7074
  /**
@@ -6876,6 +7125,7 @@ declare function andRace<INPUT, DATA, RESULT, STEPS extends ReadonlyArray<Intern
6876
7125
  id: string;
6877
7126
  name: string;
6878
7127
  purpose: string;
7128
+ retries?: number;
6879
7129
  };
6880
7130
 
6881
7131
  /**
@@ -6912,6 +7162,139 @@ declare function andTap<INPUT, DATA, RESULT, SUSPEND_DATA = DangerouslyAllowAny,
6912
7162
  id: string;
6913
7163
  name: string;
6914
7164
  purpose: string;
7165
+ retries?: number;
7166
+ };
7167
+
7168
+ /**
7169
+ * Applies guardrails to the current workflow data.
7170
+ * Use input guardrails for string/message data and output guardrails for structured data.
7171
+ */
7172
+ declare function andGuardrail<INPUT, DATA>({ inputGuardrails, outputGuardrails, ...config }: WorkflowStepGuardrailConfig<INPUT, DATA>): {
7173
+ type: "guardrail";
7174
+ inputGuardrails: InputGuardrail[] | undefined;
7175
+ outputGuardrails: OutputGuardrail<DATA>[] | undefined;
7176
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<DATA>;
7177
+ id: string;
7178
+ name: string;
7179
+ purpose: string;
7180
+ retries?: number;
7181
+ };
7182
+
7183
+ /**
7184
+ * Creates a sleep step for the workflow
7185
+ *
7186
+ * @example
7187
+ * ```ts
7188
+ * const w = createWorkflow(
7189
+ * andSleep({ id: "pause", duration: 500 }),
7190
+ * andThen({ id: "next", execute: async ({ data }) => ({ ...data }) })
7191
+ * );
7192
+ * ```
7193
+ */
7194
+ declare function andSleep<INPUT, DATA>({ duration, ...config }: WorkflowStepSleepConfig<INPUT, DATA>): {
7195
+ type: "sleep";
7196
+ duration: number | InternalWorkflowFunc<INPUT, DATA, number, any, any>;
7197
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<DATA>;
7198
+ id: string;
7199
+ name: string;
7200
+ purpose: string;
7201
+ retries?: number;
7202
+ };
7203
+
7204
+ /**
7205
+ * Creates a sleep-until step for the workflow
7206
+ *
7207
+ * @example
7208
+ * ```ts
7209
+ * const w = createWorkflow(
7210
+ * andSleepUntil({ id: "pause-until", date: new Date(Date.now() + 1000) }),
7211
+ * andThen({ id: "next", execute: async ({ data }) => ({ ...data }) })
7212
+ * );
7213
+ * ```
7214
+ */
7215
+ declare function andSleepUntil<INPUT, DATA>({ date, ...config }: WorkflowStepSleepUntilConfig<INPUT, DATA>): {
7216
+ type: "sleep-until";
7217
+ date: Date | InternalWorkflowFunc<INPUT, DATA, Date, any, any>;
7218
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<DATA>;
7219
+ id: string;
7220
+ name: string;
7221
+ purpose: string;
7222
+ retries?: number;
7223
+ };
7224
+
7225
+ /**
7226
+ * Creates a foreach step that runs a step for each item in an array.
7227
+ */
7228
+ declare function andForEach<INPUT, ITEM, RESULT>({ step, concurrency, ...config }: WorkflowStepForEachConfig<INPUT, ITEM, RESULT>): {
7229
+ type: "foreach";
7230
+ step: InternalAnyWorkflowStep<INPUT, ITEM, RESULT>;
7231
+ concurrency: number;
7232
+ execute: (context: WorkflowExecuteContext<INPUT, ITEM[], any, any>) => Promise<RESULT[]>;
7233
+ id: string;
7234
+ name: string;
7235
+ purpose: string;
7236
+ retries?: number;
7237
+ };
7238
+
7239
+ /**
7240
+ * Creates a branching step that runs all steps whose conditions match.
7241
+ */
7242
+ declare function andBranch<INPUT, DATA, RESULT>({ branches, ...config }: WorkflowStepBranchConfig<INPUT, DATA, RESULT>): {
7243
+ type: "branch";
7244
+ branches: readonly {
7245
+ condition: InternalWorkflowFunc<INPUT, DATA, boolean, any, any>;
7246
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
7247
+ }[];
7248
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<(RESULT | undefined)[]>;
7249
+ id: string;
7250
+ name: string;
7251
+ purpose: string;
7252
+ retries?: number;
7253
+ };
7254
+
7255
+ type LoopType = "dowhile" | "dountil";
7256
+ /**
7257
+ * Creates a do-while loop step for the workflow.
7258
+ */
7259
+ declare function andDoWhile<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<INPUT, DATA, RESULT>): {
7260
+ type: "loop";
7261
+ loopType: LoopType;
7262
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
7263
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
7264
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
7265
+ id: string;
7266
+ name: string;
7267
+ purpose: string;
7268
+ retries?: number;
7269
+ };
7270
+ /**
7271
+ * Creates a do-until loop step for the workflow.
7272
+ */
7273
+ declare function andDoUntil<INPUT, DATA, RESULT>(config: WorkflowStepLoopConfig<INPUT, DATA, RESULT>): {
7274
+ type: "loop";
7275
+ loopType: LoopType;
7276
+ step: InternalAnyWorkflowStep<INPUT, DATA, RESULT>;
7277
+ condition: InternalWorkflowFunc<INPUT, RESULT, boolean, any, any>;
7278
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<RESULT>;
7279
+ id: string;
7280
+ name: string;
7281
+ purpose: string;
7282
+ retries?: number;
7283
+ };
7284
+
7285
+ /**
7286
+ * Creates a mapping step that composes data from input, steps, or context.
7287
+ */
7288
+ declare function andMap<INPUT, DATA, MAP extends Record<string, WorkflowStepMapEntry<INPUT, DATA>>>({ map, ...config }: WorkflowStepMapConfig<INPUT, DATA, MAP>): {
7289
+ type: "map";
7290
+ map: MAP;
7291
+ execute: (context: WorkflowExecuteContext<INPUT, DATA, any, any>) => Promise<WorkflowStepMapResult<MAP>>;
7292
+ id: string;
7293
+ name: string;
7294
+ purpose: string;
7295
+ retries?: number;
7296
+ inputSchema?: zod.ZodTypeAny;
7297
+ outputSchema?: zod.ZodTypeAny;
6915
7298
  };
6916
7299
 
6917
7300
  /**
@@ -7031,9 +7414,21 @@ interface SerializedWorkflowStep {
7031
7414
  outputSchema?: unknown;
7032
7415
  suspendSchema?: unknown;
7033
7416
  resumeSchema?: unknown;
7417
+ retries?: number;
7034
7418
  agentId?: string;
7419
+ workflowId?: string;
7035
7420
  executeFunction?: string;
7036
7421
  conditionFunction?: string;
7422
+ conditionFunctions?: string[];
7423
+ loopType?: "dowhile" | "dountil";
7424
+ sleepDurationMs?: number;
7425
+ sleepDurationFn?: string;
7426
+ sleepUntil?: string;
7427
+ sleepUntilFn?: string;
7428
+ concurrency?: number;
7429
+ mapConfig?: string;
7430
+ guardrailInputCount?: number;
7431
+ guardrailOutputCount?: number;
7037
7432
  nestedStep?: SerializedWorkflowStep;
7038
7433
  subSteps?: SerializedWorkflowStep[];
7039
7434
  subStepsCount?: number;
@@ -7134,10 +7529,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7134
7529
  execute: (context: {
7135
7530
  data: z.infer<IS>;
7136
7531
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7137
- getStepData: (stepId: string) => {
7138
- input: any;
7139
- output: any;
7140
- } | undefined;
7532
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7141
7533
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7142
7534
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7143
7535
  logger: Logger;
@@ -7160,10 +7552,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7160
7552
  execute: (context: {
7161
7553
  data: z.infer<IS>;
7162
7554
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7163
- getStepData: (stepId: string) => {
7164
- input: any;
7165
- output: any;
7166
- } | undefined;
7555
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7167
7556
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7168
7557
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7169
7558
  logger: Logger;
@@ -7186,10 +7575,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7186
7575
  execute: (context: {
7187
7576
  data: CURRENT_DATA;
7188
7577
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7189
- getStepData: (stepId: string) => {
7190
- input: any;
7191
- output: any;
7192
- } | undefined;
7578
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7193
7579
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7194
7580
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7195
7581
  logger: Logger;
@@ -7212,10 +7598,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7212
7598
  execute: (context: {
7213
7599
  data: CURRENT_DATA;
7214
7600
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7215
- getStepData: (stepId: string) => {
7216
- input: any;
7217
- output: any;
7218
- } | undefined;
7601
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7219
7602
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7220
7603
  resumeData?: z.infer<RS>;
7221
7604
  logger: Logger;
@@ -7254,10 +7637,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7254
7637
  execute: (context: {
7255
7638
  data: CURRENT_DATA;
7256
7639
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7257
- getStepData: (stepId: string) => {
7258
- input: any;
7259
- output: any;
7260
- } | undefined;
7640
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7261
7641
  suspend: (reason?: string, suspendData?: z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7262
7642
  resumeData?: z.infer<RESUME_SCHEMA>;
7263
7643
  logger: Logger;
@@ -7284,10 +7664,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7284
7664
  condition: (context: {
7285
7665
  data: z.infer<IS>;
7286
7666
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7287
- getStepData: (stepId: string) => {
7288
- input: any;
7289
- output: any;
7290
- } | undefined;
7667
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7291
7668
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7292
7669
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7293
7670
  logger: Logger;
@@ -7345,10 +7722,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7345
7722
  execute: (context: {
7346
7723
  data: z.infer<IS>;
7347
7724
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7348
- getStepData: (stepId: string) => {
7349
- input: any;
7350
- output: any;
7351
- } | undefined;
7725
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7352
7726
  suspend: (reason?: string, suspendData?: SS extends z.ZodTypeAny ? z.infer<SS> : z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7353
7727
  resumeData?: RS extends z.ZodTypeAny ? z.infer<RS> : z.infer<RESUME_SCHEMA>;
7354
7728
  logger: Logger;
@@ -7386,10 +7760,7 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7386
7760
  execute: (context: {
7387
7761
  data: CURRENT_DATA;
7388
7762
  state: WorkflowStepState<WorkflowInput<INPUT_SCHEMA>>;
7389
- getStepData: (stepId: string) => {
7390
- input: any;
7391
- output: any;
7392
- } | undefined;
7763
+ getStepData: (stepId: string) => WorkflowStepData | undefined;
7393
7764
  suspend: (reason?: string, suspendData?: z.infer<SUSPEND_SCHEMA>) => Promise<never>;
7394
7765
  resumeData?: z.infer<RESUME_SCHEMA>;
7395
7766
  logger: Logger;
@@ -7402,6 +7773,38 @@ declare class WorkflowChain<INPUT_SCHEMA extends InternalBaseWorkflowInputSchema
7402
7773
  suspendSchema?: z.ZodTypeAny;
7403
7774
  resumeSchema?: z.ZodTypeAny;
7404
7775
  }): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7776
+ /**
7777
+ * Add a guardrail step to validate or sanitize data
7778
+ */
7779
+ andGuardrail(config: WorkflowStepGuardrailConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7780
+ /**
7781
+ * Add a sleep step to the workflow
7782
+ */
7783
+ andSleep(config: WorkflowStepSleepConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7784
+ /**
7785
+ * Add a sleep-until step to the workflow
7786
+ */
7787
+ andSleepUntil(config: WorkflowStepSleepUntilConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, CURRENT_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7788
+ /**
7789
+ * Add a branching step that runs all matching branches
7790
+ */
7791
+ 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>;
7792
+ /**
7793
+ * Add a foreach step that runs a step for each item in an array
7794
+ */
7795
+ andForEach<ITEM, NEW_DATA>(config: WorkflowStepForEachConfig<WorkflowInput<INPUT_SCHEMA>, ITEM, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, NEW_DATA[], SUSPEND_SCHEMA, RESUME_SCHEMA>;
7796
+ /**
7797
+ * Add a do-while loop step
7798
+ */
7799
+ andDoWhile<NEW_DATA>(config: WorkflowStepLoopConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, NEW_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7800
+ /**
7801
+ * Add a do-until loop step
7802
+ */
7803
+ andDoUntil<NEW_DATA>(config: WorkflowStepLoopConfig<WorkflowInput<INPUT_SCHEMA>, CURRENT_DATA, NEW_DATA>): WorkflowChain<INPUT_SCHEMA, RESULT_SCHEMA, NEW_DATA, SUSPEND_SCHEMA, RESUME_SCHEMA>;
7804
+ /**
7805
+ * Add a mapping step to the workflow
7806
+ */
7807
+ 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
7808
  /**
7406
7809
  * Add a workflow step to the workflow
7407
7810
  *
@@ -9316,10 +9719,10 @@ declare class MCPClient extends SimpleEventEmitter {
9316
9719
  */
9317
9720
  callTool(toolCall: MCPToolCall, options?: MCPClientCallOptions): Promise<MCPToolResult>;
9318
9721
  /**
9319
- * Retrieves a list of resource identifiers available on the server.
9320
- * @returns A promise resolving to an array of resource ID strings.
9722
+ * Retrieves a list of resources available on the server.
9723
+ * @returns A promise resolving to the MCP resources list response.
9321
9724
  */
9322
- listResources(): Promise<string[]>;
9725
+ listResources(): Promise<ListResourcesResult>;
9323
9726
  /**
9324
9727
  * Ensures the client is connected before proceeding with an operation.
9325
9728
  * Attempts to connect if not currently connected.
@@ -10646,9 +11049,17 @@ declare enum NodeType {
10646
11049
  WORKFLOW_STEP = "workflow_step",
10647
11050
  WORKFLOW_AGENT_STEP = "workflow_agent_step",
10648
11051
  WORKFLOW_FUNC_STEP = "workflow_func_step",
11052
+ WORKFLOW_TAP_STEP = "workflow_tap_step",
11053
+ WORKFLOW_WORKFLOW_STEP = "workflow_workflow_step",
10649
11054
  WORKFLOW_CONDITIONAL_STEP = "workflow_conditional_step",
10650
11055
  WORKFLOW_PARALLEL_ALL_STEP = "workflow_parallel_all_step",
10651
- WORKFLOW_PARALLEL_RACE_STEP = "workflow_parallel_race_step"
11056
+ WORKFLOW_PARALLEL_RACE_STEP = "workflow_parallel_race_step",
11057
+ WORKFLOW_SLEEP_STEP = "workflow_sleep_step",
11058
+ WORKFLOW_SLEEP_UNTIL_STEP = "workflow_sleep_until_step",
11059
+ WORKFLOW_FOREACH_STEP = "workflow_foreach_step",
11060
+ WORKFLOW_LOOP_STEP = "workflow_loop_step",
11061
+ WORKFLOW_BRANCH_STEP = "workflow_branch_step",
11062
+ WORKFLOW_MAP_STEP = "workflow_map_step"
10652
11063
  }
10653
11064
  /**
10654
11065
  * Standard node ID creation function
@@ -10667,7 +11078,7 @@ declare const getNodeTypeFromNodeId: (nodeId: string) => NodeType | null;
10667
11078
  /**
10668
11079
  * Workflow step types enum
10669
11080
  */
10670
- type WorkflowStepType = "agent" | "func" | "conditional-when" | "parallel-all" | "parallel-race";
11081
+ type WorkflowStepType = "agent" | "func" | "tap" | "workflow" | "conditional-when" | "parallel-all" | "parallel-race" | "sleep" | "sleep-until" | "foreach" | "loop" | "branch" | "map";
10671
11082
  /**
10672
11083
  * Create a workflow step node ID with consistent pattern
10673
11084
  * @param stepType Type of workflow step
@@ -11390,4 +11801,4 @@ declare class VoltAgent {
11390
11801
  */
11391
11802
  declare function convertUsage(usage: LanguageModelUsage | undefined): UsageInfo | undefined;
11392
11803
 
11393
- 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 };
11804
+ 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 };