@voltagent/core 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1699,6 +1699,10 @@ type Retriever = {
1699
1699
  * This is optional and may not be present in all implementations
1700
1700
  */
1701
1701
  tool?: any;
1702
+ /**
1703
+ * Optional observability attributes for retriever spans.
1704
+ */
1705
+ getObservabilityAttributes?: () => Record<string, unknown>;
1702
1706
  };
1703
1707
 
1704
1708
  /**
@@ -1747,6 +1751,11 @@ declare abstract class BaseRetriever {
1747
1751
  * @returns Promise resolving to a string with the retrieved content
1748
1752
  */
1749
1753
  abstract retrieve(input: string | BaseMessage[], options: RetrieveOptions): Promise<string>;
1754
+ /**
1755
+ * Optional observability attributes for retriever spans.
1756
+ * Override in subclasses to add context (e.g. knowledge base metadata).
1757
+ */
1758
+ getObservabilityAttributes(): Record<string, unknown>;
1750
1759
  }
1751
1760
 
1752
1761
  /**
@@ -5520,6 +5529,7 @@ declare class Agent {
5520
5529
  * Get retriever context
5521
5530
  */
5522
5531
  private getRetrieverContext;
5532
+ private getRetrieverObservabilityAttributes;
5523
5533
  /**
5524
5534
  * Resolve dynamic value
5525
5535
  */
@@ -10609,6 +10619,197 @@ declare const isServerlessRuntime: () => boolean;
10609
10619
  declare const isNodeRuntime: () => boolean;
10610
10620
  declare const getEnvVar: (key: string) => string | undefined;
10611
10621
 
10622
+ /**
10623
+ * Prompt manager with caching and Liquid template processing
10624
+ */
10625
+
10626
+ /**
10627
+ * Implementation of VoltOpsPromptManager with caching and Liquid templates
10628
+ */
10629
+ declare class VoltOpsPromptManagerImpl implements VoltOpsPromptManager {
10630
+ private readonly cache;
10631
+ private readonly apiClient;
10632
+ private readonly templateEngine;
10633
+ private readonly cacheConfig;
10634
+ private readonly logger;
10635
+ constructor(options: VoltOpsClientOptions);
10636
+ /**
10637
+ * Get prompt content by reference with caching and template processing
10638
+ */
10639
+ getPrompt(reference: PromptReference): Promise<PromptContent>;
10640
+ /**
10641
+ * Preload prompts for better performance
10642
+ */
10643
+ preload(references: PromptReference[]): Promise<void>;
10644
+ /**
10645
+ * Clear cache
10646
+ */
10647
+ clearCache(): void;
10648
+ /**
10649
+ * Get cache statistics
10650
+ */
10651
+ getCacheStats(): {
10652
+ size: number;
10653
+ entries: string[];
10654
+ };
10655
+ /**
10656
+ * Convert API response to PromptContent with metadata
10657
+ */
10658
+ private convertApiResponseToPromptContent;
10659
+ /**
10660
+ * Generate cache key for prompt reference
10661
+ */
10662
+ private getCacheKey;
10663
+ /**
10664
+ * Get cached prompt if valid
10665
+ */
10666
+ private getCachedPrompt;
10667
+ /**
10668
+ * Set cached prompt with TTL and size limit enforcement
10669
+ */
10670
+ private setCachedPrompt;
10671
+ /**
10672
+ * Evict oldest cache entry to make room for new one
10673
+ */
10674
+ private evictOldestEntry;
10675
+ /**
10676
+ * Process template variables using configured template engine
10677
+ */
10678
+ private processTemplate;
10679
+ /**
10680
+ * Process PromptContent with template processing
10681
+ */
10682
+ private processPromptContent;
10683
+ /**
10684
+ * Process MessageContent (can be string or array of parts)
10685
+ */
10686
+ private processMessageContent;
10687
+ }
10688
+
10689
+ /**
10690
+ * API client for prompt operations
10691
+ */
10692
+
10693
+ /**
10694
+ * Implementation of PromptApiClient for VoltOps API communication
10695
+ */
10696
+ declare class VoltOpsPromptApiClient implements PromptApiClient {
10697
+ private readonly baseUrl;
10698
+ private readonly publicKey;
10699
+ private readonly secretKey;
10700
+ private readonly fetchFn;
10701
+ private readonly logger;
10702
+ constructor(options: VoltOpsClientOptions);
10703
+ /**
10704
+ * Fetch prompt content from VoltOps API
10705
+ */
10706
+ fetchPrompt(reference: PromptReference): Promise<PromptApiResponse>;
10707
+ /**
10708
+ * Build URL for prompt API endpoint
10709
+ */
10710
+ private buildPromptUrl;
10711
+ /**
10712
+ * Build authentication headers
10713
+ */
10714
+ private buildHeaders;
10715
+ }
10716
+
10717
+ /**
10718
+ * Simple template engine for basic variable substitution
10719
+ */
10720
+ /**
10721
+ * Template engine interface
10722
+ */
10723
+ type TemplateEngine = {
10724
+ /** Process template with variables */
10725
+ process: (content: string, variables: Record<string, any>) => string;
10726
+ /** Engine name for debugging */
10727
+ name: string;
10728
+ };
10729
+ /**
10730
+ * Simple mustache-style template engine (built-in, no dependencies)
10731
+ * Supports {{variable}} syntax for basic variable substitution
10732
+ */
10733
+ declare const createSimpleTemplateEngine: () => TemplateEngine;
10734
+
10735
+ type KnowledgeBaseTagFilter = {
10736
+ tagName: string;
10737
+ tagValue: string;
10738
+ };
10739
+ type RagSearchKnowledgeBaseRequest = {
10740
+ knowledgeBaseId: string;
10741
+ query?: string | null;
10742
+ topK?: number;
10743
+ tagFilters?: KnowledgeBaseTagFilter[] | null;
10744
+ };
10745
+ type RagKnowledgeBaseSummary = {
10746
+ id: string;
10747
+ project_id: string;
10748
+ name: string;
10749
+ description?: string | null;
10750
+ embedding_model: string;
10751
+ embedding_dimension: number;
10752
+ chunking_config: Record<string, unknown>;
10753
+ token_count: number;
10754
+ created_at: string;
10755
+ updated_at: string;
10756
+ deleted_at?: string | null;
10757
+ };
10758
+ type RagSearchKnowledgeBaseChildChunk = {
10759
+ chunkIndex: number;
10760
+ content: string;
10761
+ startOffset: number;
10762
+ endOffset: number;
10763
+ similarity: number;
10764
+ };
10765
+ type RagSearchKnowledgeBaseResult = {
10766
+ documentId: string;
10767
+ documentName: string;
10768
+ content: string;
10769
+ chunkIndex: number;
10770
+ similarity: number;
10771
+ metadata: Record<string, unknown>;
10772
+ childChunks?: RagSearchKnowledgeBaseChildChunk[];
10773
+ };
10774
+ type RagSearchKnowledgeBaseResponse = {
10775
+ knowledgeBaseId: string;
10776
+ query: string;
10777
+ totalResults: number;
10778
+ results: RagSearchKnowledgeBaseResult[];
10779
+ };
10780
+ type VoltAgentRagRetrieverKnowledgeBaseOptions = {
10781
+ knowledgeBaseName: string;
10782
+ };
10783
+ type VoltAgentRagRetrieverOptions = RetrieverOptions & VoltAgentRagRetrieverKnowledgeBaseOptions & {
10784
+ voltOpsClient?: VoltOpsClient;
10785
+ topK?: number;
10786
+ tagFilters?: KnowledgeBaseTagFilter[] | null;
10787
+ maxChunkCharacters?: number;
10788
+ includeSources?: boolean;
10789
+ includeSimilarity?: boolean;
10790
+ };
10791
+ /**
10792
+ * Retriever that queries VoltAgent RAG Knowledge Bases via the VoltAgent API.
10793
+ *
10794
+ * Works with the `/rag/project/search` endpoint and returns the top-k chunks as context.
10795
+ */
10796
+ declare class VoltAgentRagRetriever extends BaseRetriever {
10797
+ private readonly search;
10798
+ private readonly listKnowledgeBases;
10799
+ private readonly knowledgeBaseName;
10800
+ private resolvedKnowledgeBaseId;
10801
+ private resolveKnowledgeBaseIdPromise;
10802
+ private readonly topK;
10803
+ private readonly tagFilters;
10804
+ private readonly maxChunkCharacters;
10805
+ private readonly includeSources;
10806
+ private readonly includeSimilarity;
10807
+ constructor(options: VoltAgentRagRetrieverOptions);
10808
+ getObservabilityAttributes(): Record<string, unknown>;
10809
+ private resolveKnowledgeBaseId;
10810
+ retrieve(input: string | BaseMessage[], options: RetrieveOptions): Promise<string>;
10811
+ }
10812
+
10612
10813
  /**
10613
10814
  * Creates an AgentTool from a retriever, allowing it to be used as a tool in an agent.
10614
10815
  * This is the preferred way to use a retriever as a tool, as it properly maintains the 'this' context.
@@ -10782,119 +10983,6 @@ declare const updateSinglePackage: (packageName: string, packagePath?: string) =
10782
10983
  requiresRestart?: boolean;
10783
10984
  }>;
10784
10985
 
10785
- /**
10786
- * Prompt manager with caching and Liquid template processing
10787
- */
10788
-
10789
- /**
10790
- * Implementation of VoltOpsPromptManager with caching and Liquid templates
10791
- */
10792
- declare class VoltOpsPromptManagerImpl implements VoltOpsPromptManager {
10793
- private readonly cache;
10794
- private readonly apiClient;
10795
- private readonly templateEngine;
10796
- private readonly cacheConfig;
10797
- private readonly logger;
10798
- constructor(options: VoltOpsClientOptions);
10799
- /**
10800
- * Get prompt content by reference with caching and template processing
10801
- */
10802
- getPrompt(reference: PromptReference): Promise<PromptContent>;
10803
- /**
10804
- * Preload prompts for better performance
10805
- */
10806
- preload(references: PromptReference[]): Promise<void>;
10807
- /**
10808
- * Clear cache
10809
- */
10810
- clearCache(): void;
10811
- /**
10812
- * Get cache statistics
10813
- */
10814
- getCacheStats(): {
10815
- size: number;
10816
- entries: string[];
10817
- };
10818
- /**
10819
- * Convert API response to PromptContent with metadata
10820
- */
10821
- private convertApiResponseToPromptContent;
10822
- /**
10823
- * Generate cache key for prompt reference
10824
- */
10825
- private getCacheKey;
10826
- /**
10827
- * Get cached prompt if valid
10828
- */
10829
- private getCachedPrompt;
10830
- /**
10831
- * Set cached prompt with TTL and size limit enforcement
10832
- */
10833
- private setCachedPrompt;
10834
- /**
10835
- * Evict oldest cache entry to make room for new one
10836
- */
10837
- private evictOldestEntry;
10838
- /**
10839
- * Process template variables using configured template engine
10840
- */
10841
- private processTemplate;
10842
- /**
10843
- * Process PromptContent with template processing
10844
- */
10845
- private processPromptContent;
10846
- /**
10847
- * Process MessageContent (can be string or array of parts)
10848
- */
10849
- private processMessageContent;
10850
- }
10851
-
10852
- /**
10853
- * API client for prompt operations
10854
- */
10855
-
10856
- /**
10857
- * Implementation of PromptApiClient for VoltOps API communication
10858
- */
10859
- declare class VoltOpsPromptApiClient implements PromptApiClient {
10860
- private readonly baseUrl;
10861
- private readonly publicKey;
10862
- private readonly secretKey;
10863
- private readonly fetchFn;
10864
- private readonly logger;
10865
- constructor(options: VoltOpsClientOptions);
10866
- /**
10867
- * Fetch prompt content from VoltOps API
10868
- */
10869
- fetchPrompt(reference: PromptReference): Promise<PromptApiResponse>;
10870
- /**
10871
- * Build URL for prompt API endpoint
10872
- */
10873
- private buildPromptUrl;
10874
- /**
10875
- * Build authentication headers
10876
- */
10877
- private buildHeaders;
10878
- }
10879
-
10880
- /**
10881
- * Simple template engine for basic variable substitution
10882
- */
10883
- /**
10884
- * Template engine interface
10885
- */
10886
- type TemplateEngine = {
10887
- /** Process template with variables */
10888
- process: (content: string, variables: Record<string, any>) => string;
10889
- /** Engine name for debugging */
10890
- name: string;
10891
- };
10892
- /**
10893
- * Simple mustache-style template engine (built-in, no dependencies)
10894
- * Supports {{variable}} syntax for basic variable substitution
10895
- */
10896
- declare const createSimpleTemplateEngine: () => TemplateEngine;
10897
-
10898
10986
  /**
10899
10987
  * Main VoltAgent class for managing agents and server
10900
10988
  */
@@ -11011,4 +11099,4 @@ declare class VoltAgent {
11011
11099
  */
11012
11100
  declare function convertUsage(usage: LanguageModelUsage | undefined): UsageInfo | undefined;
11013
11101
 
11014
- 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 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, type Conversation, ConversationAlreadyExistsError, ConversationNotFoundError, type ConversationQueryOptions, type ConversationQueryOptions as ConversationQueryOptionsV2, type ConversationStepRecord, type ConversationStepType, 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, type EmbeddingAdapter$1 as EmbeddingAdapter, EmbeddingAdapterNotConfiguredError, EmbeddingError, type ExtractVariableNames, FEW_SHOT_EXAMPLES, type GenerateObjectOptions, type GenerateObjectSubAgentConfig, type GenerateReasonResult, type GenerateScoreResult, type GenerateScoreStep, type GenerateTextOptions, type GenerateTextSubAgentConfig, type GetConversationStepsOptions, type GetMessagesOptions, type GuardrailAction, type GuardrailContext, type GuardrailDefinition, type GuardrailFunction, type GuardrailSeverity, type IServerProvider, type IServerlessProvider, type VoltOpsClient$1 as IVoltOpsClient, 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 LLMProvider, 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, 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 PackageUpdateInfo, 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, type ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, type RegisteredTrigger, type RegisteredWorkflow, type RemoteLogExportConfig, RemoteLogProcessor, type RetrieveOptions, type Retriever, type RetrieverOptions, type RunLocalScorersArgs, type RunLocalScorersResult, 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 StreamObjectSubAgentConfig, type StreamPart, type StreamTextFinishResult, type StreamTextOnFinishCallback, type StreamTextOptions, type StreamTextSubAgentConfig, type SubAgentConfig, type SubAgentMethod, type SubAgentStateData, type SupervisorConfig, TRIGGER_CONTEXT_KEY, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, 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, 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, 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, addTimestampToMessage, andAgent, andAll, andRace, andTap, andThen, andWhen, andWorkflow, appendToMessage, buildRetrieverLogMessage, buildSamplingMetadata, buildScorer, buildSpanTree, checkForUpdates, convertUsage, cosineSimilarity, createDefaultInputSafetyGuardrails, createDefaultPIIGuardrails, createDefaultSafetyGuardrails, createEmailRedactorGuardrail, createHTMLSanitizerInputGuardrail, createHooks, createInputGuardrail, createInputLengthGuardrail, createMaxLengthGuardrail, createNodeId, createOutputGuardrail, createPIIInputGuardrail, createPhoneNumberGuardrail, createProfanityGuardrail, createProfanityInputGuardrail, createPrompt, createPromptInjectionGuardrail, createReasoningTools, createRetrieverTool, createScorer, createSensitiveNumberGuardrail, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolkit, createTriggers, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, defineVoltOpsTrigger, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, 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 };
11102
+ 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 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, type Conversation, ConversationAlreadyExistsError, ConversationNotFoundError, type ConversationQueryOptions, type ConversationQueryOptions as ConversationQueryOptionsV2, type ConversationStepRecord, type ConversationStepType, 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, type EmbeddingAdapter$1 as EmbeddingAdapter, EmbeddingAdapterNotConfiguredError, EmbeddingError, type ExtractVariableNames, FEW_SHOT_EXAMPLES, type GenerateObjectOptions, type GenerateObjectSubAgentConfig, type GenerateReasonResult, type GenerateScoreResult, type GenerateScoreStep, type GenerateTextOptions, type GenerateTextSubAgentConfig, type GetConversationStepsOptions, type GetMessagesOptions, type GuardrailAction, type GuardrailContext, type GuardrailDefinition, type GuardrailFunction, type GuardrailSeverity, type IServerProvider, type IServerlessProvider, type VoltOpsClient$1 as IVoltOpsClient, 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, 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, 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 PackageUpdateInfo, 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, 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 RetrieveOptions, type Retriever, type RetrieverOptions, type RunLocalScorersArgs, type RunLocalScorersResult, 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 StreamObjectSubAgentConfig, type StreamPart, type StreamTextFinishResult, type StreamTextOnFinishCallback, type StreamTextOptions, type StreamTextSubAgentConfig, type SubAgentConfig, type SubAgentMethod, type SubAgentStateData, type SupervisorConfig, TRIGGER_CONTEXT_KEY, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, 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, 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, addTimestampToMessage, andAgent, andAll, andRace, andTap, andThen, andWhen, andWorkflow, appendToMessage, buildRetrieverLogMessage, buildSamplingMetadata, buildScorer, buildSpanTree, checkForUpdates, convertUsage, cosineSimilarity, createDefaultInputSafetyGuardrails, createDefaultPIIGuardrails, createDefaultSafetyGuardrails, createEmailRedactorGuardrail, createHTMLSanitizerInputGuardrail, createHooks, createInputGuardrail, createInputLengthGuardrail, createMaxLengthGuardrail, createNodeId, createOutputGuardrail, createPIIInputGuardrail, createPhoneNumberGuardrail, createProfanityGuardrail, createProfanityInputGuardrail, createPrompt, createPromptInjectionGuardrail, createReasoningTools, createRetrieverTool, createScorer, createSensitiveNumberGuardrail, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolkit, createTriggers, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, defineVoltOpsTrigger, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, 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 };