@voltagent/core 0.1.35 → 0.1.37

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.ts CHANGED
@@ -520,6 +520,14 @@ interface AgentHistoryEntry {
520
520
  */
521
521
  usage?: UsageInfo;
522
522
  metadata?: Record<string, unknown>;
523
+ /**
524
+ * User ID associated with this history entry
525
+ */
526
+ userId?: string;
527
+ /**
528
+ * Conversation ID associated with this history entry
529
+ */
530
+ conversationId?: string;
523
531
  /**
524
532
  * Sequence number for the history entry
525
533
  */
@@ -957,6 +965,17 @@ type AgentHandoffOptions = {
957
965
  * Optional user-defined context to be passed from the supervisor agent
958
966
  */
959
967
  userContext?: Map<string | symbol, unknown>;
968
+ /**
969
+ * Optional real-time event forwarder function
970
+ * Used to forward SubAgent events to parent stream in real-time
971
+ */
972
+ forwardEvent?: (event: {
973
+ type: string;
974
+ data: any;
975
+ timestamp: string;
976
+ subAgentId: string;
977
+ subAgentName: string;
978
+ }) => Promise<void>;
960
979
  };
961
980
  /**
962
981
  * Result of a handoff to another agent
@@ -982,6 +1001,16 @@ interface AgentHandoffResult {
982
1001
  * Error information if the handoff failed
983
1002
  */
984
1003
  error?: Error | string;
1004
+ /**
1005
+ * Stream events captured from sub-agent for forwarding to parent
1006
+ */
1007
+ streamEvents?: Array<{
1008
+ type: string;
1009
+ data: any;
1010
+ timestamp: string;
1011
+ subAgentId: string;
1012
+ subAgentName: string;
1013
+ }>;
985
1014
  }
986
1015
  /**
987
1016
  * Context for a specific agent operation (e.g., one generateText call)
@@ -1195,6 +1224,54 @@ type ProviderTextResponse<TOriginalResponse> = {
1195
1224
  */
1196
1225
  finishReason?: string;
1197
1226
  };
1227
+ type TextDeltaStreamPart = {
1228
+ type: "text-delta";
1229
+ textDelta: string;
1230
+ subAgentId?: string;
1231
+ subAgentName?: string;
1232
+ };
1233
+ type ReasoningStreamPart = {
1234
+ type: "reasoning";
1235
+ reasoning: string;
1236
+ subAgentId?: string;
1237
+ subAgentName?: string;
1238
+ };
1239
+ type SourceStreamPart = {
1240
+ type: "source";
1241
+ source: string;
1242
+ subAgentId?: string;
1243
+ subAgentName?: string;
1244
+ };
1245
+ type ToolCallStreamPart = {
1246
+ type: "tool-call";
1247
+ toolCallId: string;
1248
+ toolName: string;
1249
+ args: Record<string, any>;
1250
+ subAgentId?: string;
1251
+ subAgentName?: string;
1252
+ };
1253
+ type ToolResultStreamPart = {
1254
+ type: "tool-result";
1255
+ toolCallId: string;
1256
+ toolName: string;
1257
+ result: any;
1258
+ subAgentId?: string;
1259
+ subAgentName?: string;
1260
+ };
1261
+ type FinishStreamPart = {
1262
+ type: "finish";
1263
+ finishReason?: string;
1264
+ usage?: UsageInfo;
1265
+ subAgentId?: string;
1266
+ subAgentName?: string;
1267
+ };
1268
+ type ErrorStreamPart = {
1269
+ type: "error";
1270
+ error: Error;
1271
+ subAgentId?: string;
1272
+ subAgentName?: string;
1273
+ };
1274
+ type StreamPart = TextDeltaStreamPart | ReasoningStreamPart | SourceStreamPart | ToolCallStreamPart | ToolResultStreamPart | FinishStreamPart | ErrorStreamPart;
1198
1275
  /**
1199
1276
  * Response type for text streaming operations
1200
1277
  */
@@ -1207,6 +1284,12 @@ type ProviderTextStreamResponse<TOriginalResponse> = {
1207
1284
  * Text stream for consuming the response
1208
1285
  */
1209
1286
  textStream: AsyncIterableStream<string>;
1287
+ /**
1288
+ * Full stream for consuming all events (text, tool calls, reasoning, etc.)
1289
+ * This provides access to the complete stream of events from the provider
1290
+ * Optional - only available in providers that support it
1291
+ */
1292
+ fullStream?: AsyncIterable<StreamPart>;
1210
1293
  };
1211
1294
  /**
1212
1295
  * Response type for object generation operations
@@ -2251,6 +2334,10 @@ declare class LibSQLStorage implements Memory {
2251
2334
  * @param migratedCount Number of records migrated
2252
2335
  */
2253
2336
  private setMigrationFlag;
2337
+ /**
2338
+ * Migrate agent history schema to add userId and conversationId columns
2339
+ */
2340
+ private migrateAgentHistorySchema;
2254
2341
  }
2255
2342
 
2256
2343
  /**
@@ -2868,6 +2955,10 @@ declare class Agent<TProvider extends {
2868
2955
  * Helper method to enrich and end an OpenTelemetry span associated with a tool call.
2869
2956
  */
2870
2957
  private _endOtelToolSpan;
2958
+ /**
2959
+ * Create an enhanced fullStream that includes SubAgent events
2960
+ */
2961
+ private createEnhancedFullStream;
2871
2962
  /**
2872
2963
  * Generate a text response without streaming
2873
2964
  */
@@ -2980,6 +3071,72 @@ declare class CustomEndpointError extends Error {
2980
3071
  constructor(message: string);
2981
3072
  }
2982
3073
 
3074
+ /**
3075
+ * Basic type definitions for VoltAgent Core
3076
+ */
3077
+
3078
+ /**
3079
+ * Server configuration options for VoltAgent
3080
+ */
3081
+ type ServerOptions = {
3082
+ /**
3083
+ * Whether to automatically start the server
3084
+ * @default true
3085
+ */
3086
+ autoStart?: boolean;
3087
+ /**
3088
+ * Port number for the server
3089
+ * @default 3141 (or next available port)
3090
+ */
3091
+ port?: number;
3092
+ /**
3093
+ * Optional flag to enable/disable Swagger UI
3094
+ * By default:
3095
+ * - In development (NODE_ENV !== 'production'): Swagger UI is enabled
3096
+ * - In production (NODE_ENV === 'production'): Swagger UI is disabled
3097
+ */
3098
+ enableSwaggerUI?: boolean;
3099
+ /**
3100
+ * Optional array of custom endpoint definitions to register with the API server
3101
+ */
3102
+ customEndpoints?: CustomEndpointDefinition[];
3103
+ };
3104
+ /**
3105
+ * VoltAgent constructor options
3106
+ */
3107
+ type VoltAgentOptions = {
3108
+ agents: Record<string, Agent<any>>;
3109
+ /**
3110
+ * Server configuration options
3111
+ */
3112
+ server?: ServerOptions;
3113
+ /**
3114
+ * @deprecated Use `server.port` instead
3115
+ */
3116
+ port?: number;
3117
+ /**
3118
+ * @deprecated Use `server.autoStart` instead
3119
+ */
3120
+ autoStart?: boolean;
3121
+ checkDependencies?: boolean;
3122
+ /**
3123
+ * @deprecated Use `server.customEndpoints` instead
3124
+ */
3125
+ customEndpoints?: CustomEndpointDefinition[];
3126
+ /**
3127
+ * @deprecated Use `server.enableSwaggerUI` instead
3128
+ */
3129
+ enableSwaggerUI?: boolean;
3130
+ /**
3131
+ * Optional OpenTelemetry SpanExporter instance or array of instances.
3132
+ * or a VoltAgentExporter instance or array of instances.
3133
+ * If provided, VoltAgent will attempt to initialize and register
3134
+ * a NodeTracerProvider with a BatchSpanProcessor for the given exporter(s).
3135
+ * It's recommended to only provide this in one VoltAgent instance per application process.
3136
+ */
3137
+ telemetryExporter?: (SpanExporter | VoltAgentExporter) | (SpanExporter | VoltAgentExporter)[];
3138
+ };
3139
+
2983
3140
  /**
2984
3141
  * Enum defining the next action to take after a reasoning step.
2985
3142
  */
@@ -3009,8 +3166,8 @@ declare const ReasoningStepSchema: z.ZodObject<{
3009
3166
  id: string;
3010
3167
  historyEntryId: string;
3011
3168
  agentId: string;
3012
- timestamp: string;
3013
3169
  reasoning: string;
3170
+ timestamp: string;
3014
3171
  confidence: number;
3015
3172
  action?: string | undefined;
3016
3173
  result?: string | undefined;
@@ -3021,8 +3178,8 @@ declare const ReasoningStepSchema: z.ZodObject<{
3021
3178
  id: string;
3022
3179
  historyEntryId: string;
3023
3180
  agentId: string;
3024
- timestamp: string;
3025
3181
  reasoning: string;
3182
+ timestamp: string;
3026
3183
  action?: string | undefined;
3027
3184
  result?: string | undefined;
3028
3185
  next_action?: NextAction | undefined;
@@ -3054,44 +3211,6 @@ type CreateReasoningToolsOptions = {
3054
3211
  */
3055
3212
  declare const createReasoningTools: (options?: CreateReasoningToolsOptions) => Toolkit;
3056
3213
 
3057
- /**
3058
- * Basic type definitions for VoltAgent Core
3059
- */
3060
- /**
3061
- * Retry configuration for error handling
3062
- */
3063
- interface RetryConfig {
3064
- /**
3065
- * Maximum number of retry attempts
3066
- * @default 3
3067
- */
3068
- maxRetries?: number;
3069
- /**
3070
- * Initial delay between retries in milliseconds
3071
- * @default 1000
3072
- */
3073
- initialDelay?: number;
3074
- /**
3075
- * Backoff multiplier for exponential backoff
3076
- * @default 2
3077
- */
3078
- backoffMultiplier?: number;
3079
- /**
3080
- * Maximum delay between retries in milliseconds
3081
- * @default 30000
3082
- */
3083
- maxDelay?: number;
3084
- /**
3085
- * Callback function called when an error occurs
3086
- * Return true to retry, false to abort
3087
- * @param error The error that occurred
3088
- * @param attempt Current attempt number (1-based)
3089
- * @param maxRetries Maximum number of retries
3090
- * @returns Boolean indicating whether to retry
3091
- */
3092
- onError?: ((error: Error, attempt: number, maxRetries: number) => boolean | Promise<boolean>) | null;
3093
- }
3094
-
3095
3214
  /**
3096
3215
  * Prompt management utilities for agent prompt tuning
3097
3216
  */
@@ -3216,6 +3335,42 @@ declare const updateSinglePackage: (packageName: string, packagePath?: string) =
3216
3335
  declare function safeJsonParse(value: string | null | undefined): any;
3217
3336
  declare function serializeValueForDebug(value: unknown): unknown;
3218
3337
 
3338
+ /**
3339
+ * Utility for merging multiple async streams with event queue integration
3340
+ */
3341
+ interface StreamMergerOptions {
3342
+ /**
3343
+ * Polling interval for checking events (in milliseconds)
3344
+ * Default: 16ms (~60fps for smooth UI updates)
3345
+ */
3346
+ pollingInterval?: number;
3347
+ /**
3348
+ * Post-stream polling interval when main stream is finished (in milliseconds)
3349
+ * Default: 10ms
3350
+ */
3351
+ postStreamInterval?: number;
3352
+ }
3353
+ /**
3354
+ * Creates an enhanced stream that merges an original async iterable with events
3355
+ * from a shared queue, ensuring chronological order and smooth UI updates.
3356
+ *
3357
+ * @param originalStream - The main stream to merge with
3358
+ * @param eventsQueue - Shared array that other sources push events to
3359
+ * @param options - Configuration options for polling intervals
3360
+ * @returns Enhanced async iterable that yields events from both sources
3361
+ */
3362
+ declare function createMergedStream<T>(originalStream: AsyncIterable<T>, eventsQueue: T[], options?: StreamMergerOptions): AsyncIterable<T>;
3363
+ /**
3364
+ * Helper type for SubAgent events that can be merged into a main stream
3365
+ */
3366
+ interface SubAgentEvent {
3367
+ type: string;
3368
+ data: any;
3369
+ timestamp: string;
3370
+ subAgentId: string;
3371
+ subAgentName: string;
3372
+ }
3373
+
3219
3374
  /**
3220
3375
  * Creates an AgentTool from a retriever, allowing it to be used as a tool in an agent.
3221
3376
  * This is the preferred way to use a retriever as a tool, as it properly maintains the 'this' context.
@@ -3325,9 +3480,10 @@ type MCPClientConfig = {
3325
3480
  /**
3326
3481
  * MCP server configuration options
3327
3482
  */
3328
- type MCPServerConfig = HTTPServerConfig | StdioServerConfig;
3483
+ type MCPServerConfig = HTTPServerConfig | SSEServerConfig | StreamableHTTPServerConfig | StdioServerConfig;
3329
3484
  /**
3330
- * HTTP-based MCP server configuration via SSE
3485
+ * HTTP-based MCP server configuration with automatic fallback
3486
+ * Tries streamable HTTP first, falls back to SSE if not supported
3331
3487
  */
3332
3488
  type HTTPServerConfig = {
3333
3489
  /**
@@ -3342,11 +3498,53 @@ type HTTPServerConfig = {
3342
3498
  * Request initialization options
3343
3499
  */
3344
3500
  requestInit?: RequestInit;
3501
+ /**
3502
+ * Event source initialization options (used for SSE fallback)
3503
+ */
3504
+ eventSourceInit?: EventSourceInit;
3505
+ };
3506
+ /**
3507
+ * SSE-based MCP server configuration (explicit SSE transport)
3508
+ */
3509
+ type SSEServerConfig = {
3510
+ /**
3511
+ * Type of server connection
3512
+ */
3513
+ type: "sse";
3514
+ /**
3515
+ * URL of the MCP server
3516
+ */
3517
+ url: string;
3518
+ /**
3519
+ * Request initialization options
3520
+ */
3521
+ requestInit?: RequestInit;
3345
3522
  /**
3346
3523
  * Event source initialization options
3347
3524
  */
3348
3525
  eventSourceInit?: EventSourceInit;
3349
3526
  };
3527
+ /**
3528
+ * Streamable HTTP-based MCP server configuration (no fallback)
3529
+ */
3530
+ type StreamableHTTPServerConfig = {
3531
+ /**
3532
+ * Type of server connection
3533
+ */
3534
+ type: "streamable-http";
3535
+ /**
3536
+ * URL of the MCP server
3537
+ */
3538
+ url: string;
3539
+ /**
3540
+ * Request initialization options
3541
+ */
3542
+ requestInit?: RequestInit;
3543
+ /**
3544
+ * Session ID for the connection
3545
+ */
3546
+ sessionId?: string;
3547
+ };
3350
3548
  /**
3351
3549
  * Stdio-based MCP server configuration
3352
3550
  */
@@ -3459,6 +3657,18 @@ declare class MCPClient extends EventEmitter {
3459
3657
  * Information identifying this client to the server.
3460
3658
  */
3461
3659
  private readonly clientInfo;
3660
+ /**
3661
+ * Server configuration for fallback attempts.
3662
+ */
3663
+ private readonly serverConfig;
3664
+ /**
3665
+ * Whether to attempt SSE fallback if streamable HTTP fails.
3666
+ */
3667
+ private shouldAttemptFallback;
3668
+ /**
3669
+ * Client capabilities for re-initialization.
3670
+ */
3671
+ private readonly capabilities;
3462
3672
  /**
3463
3673
  * Creates a new MCP client instance.
3464
3674
  * @param config Configuration for the client, including server details and client identity.
@@ -3473,6 +3683,11 @@ declare class MCPClient extends EventEmitter {
3473
3683
  * Idempotent: does nothing if already connected.
3474
3684
  */
3475
3685
  connect(): Promise<void>;
3686
+ /**
3687
+ * Attempts to connect using SSE transport as a fallback.
3688
+ * @param originalError The error from the initial connection attempt.
3689
+ */
3690
+ private attemptSSEFallback;
3476
3691
  /**
3477
3692
  * Closes the connection to the MCP server.
3478
3693
  * Idempotent: does nothing if not connected.
@@ -3517,6 +3732,18 @@ declare class MCPClient extends EventEmitter {
3517
3732
  * @returns True if the configuration type is 'http', false otherwise.
3518
3733
  */
3519
3734
  private isHTTPServer;
3735
+ /**
3736
+ * Type guard to check if a server configuration is for an SSE server.
3737
+ * @param server The server configuration object.
3738
+ * @returns True if the configuration type is 'sse', false otherwise.
3739
+ */
3740
+ private isSSEServer;
3741
+ /**
3742
+ * Type guard to check if a server configuration is for a Streamable HTTP server.
3743
+ * @param server The server configuration object.
3744
+ * @returns True if the configuration type is 'streamable-http', false otherwise.
3745
+ */
3746
+ private isStreamableHTTPServer;
3520
3747
  /**
3521
3748
  * Type guard to check if a server configuration is for a Stdio server.
3522
3749
  * @param server The server configuration object.
@@ -3691,24 +3918,6 @@ declare function registerCustomEndpoint(endpoint: CustomEndpointDefinition): voi
3691
3918
  */
3692
3919
  declare function registerCustomEndpoints(endpoints: CustomEndpointDefinition[]): void;
3693
3920
 
3694
- type VoltAgentOptions = {
3695
- agents: Record<string, Agent<any>>;
3696
- port?: number;
3697
- autoStart?: boolean;
3698
- checkDependencies?: boolean;
3699
- /**
3700
- * Optional array of custom endpoint definitions to register with the API server
3701
- */
3702
- customEndpoints?: CustomEndpointDefinition[];
3703
- /**
3704
- * Optional OpenTelemetry SpanExporter instance or array of instances.
3705
- * or a VoltAgentExporter instance or array of instances.
3706
- * If provided, VoltAgent will attempt to initialize and register
3707
- * a NodeTracerProvider with a BatchSpanProcessor for the given exporter(s).
3708
- * It's recommended to only provide this in one VoltAgent instance per application process.
3709
- */
3710
- telemetryExporter?: (SpanExporter | VoltAgentExporter) | (SpanExporter | VoltAgentExporter)[];
3711
- };
3712
3921
  /**
3713
3922
  * Main VoltAgent class for managing agents and server
3714
3923
  */
@@ -3716,6 +3925,8 @@ declare class VoltAgent {
3716
3925
  private registry;
3717
3926
  private serverStarted;
3718
3927
  private customEndpoints;
3928
+ private serverConfig;
3929
+ private serverOptions;
3719
3930
  constructor(options: VoltAgentOptions);
3720
3931
  /**
3721
3932
  * Check for dependency updates
@@ -3761,4 +3972,4 @@ declare class VoltAgent {
3761
3972
  shutdownTelemetry(): Promise<void>;
3762
3973
  }
3763
3974
 
3764
- export { Agent, AgentErrorEvent, AgentHistoryEntry, AgentHookOnEnd, AgentHookOnHandoff, AgentHookOnStart, AgentHookOnToolEnd, AgentHookOnToolStart, AgentHooks, AgentOptions, AgentRegistry, AgentResponse, AgentStartEvent, AgentStartEventMetadata, AgentSuccessEvent, AgentSuccessEventMetadata, AgentTool, AllowedVariableValue, AnyToolConfig, AsyncIterableStream, BaseEventMetadata, BaseLLMOptions, BaseMessage, BaseRetriever, BaseTimelineEvent, BaseTool, BaseToolCall, ClientInfo, Conversation, ConversationQueryOptions, CreateConversationInput, CreateReasoningToolsOptions, CustomEndpointDefinition, CustomEndpointError, CustomEndpointHandler, DEFAULT_INSTRUCTIONS, DataContent, EventStatus, ExtractVariableNames, FEW_SHOT_EXAMPLES, FilePart, GenerateObjectOptions, GenerateTextOptions, HTTPServerConfig, HistoryStatus, HttpMethod, ImagePart, InMemoryStorage, InferGenerateObjectResponse, InferGenerateTextResponse, InferMessage, InferModel, InferProviderParams, InferStreamResponse, InferTool, LLMProvider, LibSQLStorage, MCPClient, MCPClientConfig, MCPClientEvents, MCPConfiguration, MCPOptions, MCPServerConfig, MCPToolCall, MCPToolResult, Memory, MemoryEventMetadata, MemoryManager, MemoryMessage, MemoryOptions, MemoryReadErrorEvent, MemoryReadStartEvent, MemoryReadSuccessEvent, MemoryWriteErrorEvent, MemoryWriteStartEvent, MemoryWriteSuccessEvent, MessageContent, MessageFilterOptions, MessageRole, ModelToolCall, NewTimelineEvent, NextAction, NodeType, OnEndHookArgs, OnHandoffHookArgs, OnStartHookArgs, OnToolEndHookArgs, OnToolStartHookArgs, OperationContext, PackageUpdateInfo, PromptCreator, PromptTemplate, ProviderObjectResponse, ProviderObjectStreamResponse, ProviderParams, ProviderResponse, ProviderTextResponse, ProviderTextStreamResponse, ReadableStreamType, ReasoningStep, ReasoningStepSchema, ReasoningToolExecuteOptions, RetrieveOptions, Retriever, RetrieverErrorEvent, RetrieverOptions, RetrieverStartEvent, RetrieverSuccessEvent, RetryConfig, StandardEventData, StandardTimelineEvent, StdioServerConfig, StepChunkCallback, StepFinishCallback, StepWithContent, StreamObjectFinishResult, StreamObjectOnFinishCallback, StreamObjectOptions, StreamTextFinishResult, StreamTextOnFinishCallback, StreamTextOptions, TemplateVariables, TextPart, TimelineEventCoreLevel, TimelineEventCoreStatus, TimelineEventCoreType, Tool, ToolCall, ToolErrorEvent, ToolErrorInfo, ToolExecuteOptions, ToolExecutionContext, ToolManager, ToolOptions, ToolSchema, ToolStartEvent, ToolStatus, ToolStatusInfo, ToolSuccessEvent, Toolkit, ToolsetMap, ToolsetWithTools, TransportError, Usage, UsageInfo, Voice, VoiceEventData, VoiceEventType, VoiceMetadata, VoiceOptions, VoltAgent, VoltAgentError, VoltAgentExporter, VoltAgentExporterOptions, checkForUpdates, createAsyncIterableStream, createHooks, createNodeId, createPrompt, createReasoningTools, createRetrieverTool, createTool, createToolkit, VoltAgent as default, getNodeTypeFromNodeId, registerCustomEndpoint, registerCustomEndpoints, safeJsonParse, serializeValueForDebug, tool, updateAllPackages, updateSinglePackage, zodSchemaToJsonUI };
3975
+ export { Agent, AgentErrorEvent, AgentHistoryEntry, AgentHookOnEnd, AgentHookOnHandoff, AgentHookOnStart, AgentHookOnToolEnd, AgentHookOnToolStart, AgentHooks, AgentOptions, AgentRegistry, AgentResponse, AgentStartEvent, AgentStartEventMetadata, AgentSuccessEvent, AgentSuccessEventMetadata, AgentTool, AllowedVariableValue, AnyToolConfig, AsyncIterableStream, BaseEventMetadata, BaseLLMOptions, BaseMessage, BaseRetriever, BaseTimelineEvent, BaseTool, BaseToolCall, ClientInfo, Conversation, ConversationQueryOptions, CreateConversationInput, CreateReasoningToolsOptions, CustomEndpointDefinition, CustomEndpointError, CustomEndpointHandler, DEFAULT_INSTRUCTIONS, DataContent, ErrorStreamPart, EventStatus, ExtractVariableNames, FEW_SHOT_EXAMPLES, FilePart, FinishStreamPart, GenerateObjectOptions, GenerateTextOptions, HTTPServerConfig, HistoryStatus, HttpMethod, ImagePart, InMemoryStorage, InferGenerateObjectResponse, InferGenerateTextResponse, InferMessage, InferModel, InferProviderParams, InferStreamResponse, InferTool, LLMProvider, LibSQLStorage, MCPClient, MCPClientConfig, MCPClientEvents, MCPConfiguration, MCPOptions, MCPServerConfig, MCPToolCall, MCPToolResult, Memory, MemoryEventMetadata, MemoryManager, MemoryMessage, MemoryOptions, MemoryReadErrorEvent, MemoryReadStartEvent, MemoryReadSuccessEvent, MemoryWriteErrorEvent, MemoryWriteStartEvent, MemoryWriteSuccessEvent, MessageContent, MessageFilterOptions, MessageRole, ModelToolCall, NewTimelineEvent, NextAction, NodeType, OnEndHookArgs, OnHandoffHookArgs, OnStartHookArgs, OnToolEndHookArgs, OnToolStartHookArgs, OperationContext, PackageUpdateInfo, PromptCreator, PromptTemplate, ProviderObjectResponse, ProviderObjectStreamResponse, ProviderParams, ProviderResponse, ProviderTextResponse, ProviderTextStreamResponse, ReadableStreamType, ReasoningStep, ReasoningStepSchema, ReasoningStreamPart, ReasoningToolExecuteOptions, RetrieveOptions, Retriever, RetrieverErrorEvent, RetrieverOptions, RetrieverStartEvent, RetrieverSuccessEvent, SSEServerConfig, ServerOptions, SourceStreamPart, StandardEventData, StandardTimelineEvent, StdioServerConfig, StepChunkCallback, StepFinishCallback, StepWithContent, StreamMergerOptions, StreamObjectFinishResult, StreamObjectOnFinishCallback, StreamObjectOptions, StreamPart, StreamTextFinishResult, StreamTextOnFinishCallback, StreamTextOptions, StreamableHTTPServerConfig, SubAgentEvent, TemplateVariables, TextDeltaStreamPart, TextPart, TimelineEventCoreLevel, TimelineEventCoreStatus, TimelineEventCoreType, Tool, ToolCall, ToolCallStreamPart, ToolErrorEvent, ToolErrorInfo, ToolExecuteOptions, ToolExecutionContext, ToolManager, ToolOptions, ToolResultStreamPart, ToolSchema, ToolStartEvent, ToolStatus, ToolStatusInfo, ToolSuccessEvent, Toolkit, ToolsetMap, ToolsetWithTools, TransportError, Usage, UsageInfo, Voice, VoiceEventData, VoiceEventType, VoiceMetadata, VoiceOptions, VoltAgent, VoltAgentError, VoltAgentExporter, VoltAgentExporterOptions, VoltAgentOptions, checkForUpdates, createAsyncIterableStream, createHooks, createMergedStream, createNodeId, createPrompt, createReasoningTools, createRetrieverTool, createTool, createToolkit, VoltAgent as default, getNodeTypeFromNodeId, registerCustomEndpoint, registerCustomEndpoints, safeJsonParse, serializeValueForDebug, tool, updateAllPackages, updateSinglePackage, zodSchemaToJsonUI };