@voltagent/core 1.1.27 → 1.1.28

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
@@ -3470,7 +3470,7 @@ declare class AgentTraceContext {
3470
3470
  /**
3471
3471
  * Create a child span with automatic parent context and attribute inheritance
3472
3472
  */
3473
- createChildSpan(name: string, type: "tool" | "memory" | "retriever" | "embedding" | "vector" | "agent", options?: {
3473
+ createChildSpan(name: string, type: "tool" | "memory" | "retriever" | "embedding" | "vector" | "agent" | "guardrail", options?: {
3474
3474
  label?: string;
3475
3475
  attributes?: Record<string, any>;
3476
3476
  kind?: SpanKind$1;
@@ -3478,7 +3478,7 @@ declare class AgentTraceContext {
3478
3478
  /**
3479
3479
  * Create a child span with a specific parent span
3480
3480
  */
3481
- createChildSpanWithParent(parentSpan: Span, name: string, type: "tool" | "memory" | "retriever" | "embedding" | "vector" | "agent", options?: {
3481
+ createChildSpanWithParent(parentSpan: Span, name: string, type: "tool" | "memory" | "retriever" | "embedding" | "vector" | "agent" | "guardrail", options?: {
3482
3482
  label?: string;
3483
3483
  attributes?: Record<string, any>;
3484
3484
  kind?: SpanKind$1;
@@ -3577,6 +3577,7 @@ interface SubAgentStateData {
3577
3577
  node_id: string;
3578
3578
  subAgents?: SubAgentStateData[];
3579
3579
  scorers?: AgentScorerState[];
3580
+ guardrails?: AgentGuardrailStateGroup;
3580
3581
  methodConfig?: {
3581
3582
  method: string;
3582
3583
  schema?: string;
@@ -3631,6 +3632,7 @@ interface AgentFullState {
3631
3632
  status?: string;
3632
3633
  node_id: string;
3633
3634
  } | null;
3635
+ guardrails?: AgentGuardrailStateGroup;
3634
3636
  }
3635
3637
  /**
3636
3638
  * Enhanced dynamic value for instructions that supports prompt management
@@ -3717,6 +3719,121 @@ type SupervisorConfig = {
3717
3719
  */
3718
3720
  includeErrorInEmptyResponse?: boolean;
3719
3721
  };
3722
+ type GuardrailSeverity = "info" | "warning" | "critical";
3723
+ type GuardrailAction = "allow" | "modify" | "block";
3724
+ interface GuardrailBaseResult {
3725
+ pass: boolean;
3726
+ action?: GuardrailAction;
3727
+ message?: string;
3728
+ metadata?: Record<string, unknown>;
3729
+ }
3730
+ interface OutputGuardrailStreamArgs extends GuardrailContext {
3731
+ part: VoltAgentTextStreamPart;
3732
+ streamParts: VoltAgentTextStreamPart[];
3733
+ state: Record<string, any>;
3734
+ abort: (reason?: string) => never;
3735
+ }
3736
+ type OutputGuardrailStreamResult = VoltAgentTextStreamPart | null | undefined | Promise<VoltAgentTextStreamPart | null | undefined>;
3737
+ type OutputGuardrailStreamHandler = (args: OutputGuardrailStreamArgs) => OutputGuardrailStreamResult;
3738
+ type GuardrailFunctionMetadata = {
3739
+ guardrailId?: string;
3740
+ guardrailName?: string;
3741
+ guardrailDescription?: string;
3742
+ guardrailTags?: string[];
3743
+ guardrailSeverity?: GuardrailSeverity;
3744
+ };
3745
+ type GuardrailFunction<TArgs, TResult> = ((args: TArgs) => TResult | Promise<TResult>) & GuardrailFunctionMetadata;
3746
+ interface GuardrailDefinition<TArgs, TResult> {
3747
+ id?: string;
3748
+ name?: string;
3749
+ description?: string;
3750
+ tags?: string[];
3751
+ severity?: GuardrailSeverity;
3752
+ metadata?: Record<string, unknown>;
3753
+ handler: GuardrailFunction<TArgs, TResult>;
3754
+ }
3755
+ type GuardrailConfig<TArgs, TResult> = GuardrailFunction<TArgs, TResult> | GuardrailDefinition<TArgs, TResult>;
3756
+ interface AgentGuardrailState {
3757
+ id?: string;
3758
+ name: string;
3759
+ direction: "input" | "output";
3760
+ description?: string;
3761
+ severity?: GuardrailSeverity;
3762
+ tags?: string[];
3763
+ metadata?: Record<string, unknown> | null;
3764
+ node_id: string;
3765
+ }
3766
+ interface AgentGuardrailStateGroup {
3767
+ input: AgentGuardrailState[];
3768
+ output: AgentGuardrailState[];
3769
+ }
3770
+ interface GuardrailContext {
3771
+ agent: Agent;
3772
+ context: OperationContext;
3773
+ operation: AgentEvalOperationType;
3774
+ }
3775
+ interface InputGuardrailArgs extends GuardrailContext {
3776
+ /**
3777
+ * The latest value after any previous guardrail modifications.
3778
+ */
3779
+ input: string | UIMessage[] | BaseMessage[];
3780
+ /**
3781
+ * Plain text representation of the latest input value.
3782
+ */
3783
+ inputText: string;
3784
+ /**
3785
+ * The original user provided value before any guardrail modifications.
3786
+ */
3787
+ originalInput: string | UIMessage[] | BaseMessage[];
3788
+ /**
3789
+ * Plain text representation of the original input value.
3790
+ */
3791
+ originalInputText: string;
3792
+ }
3793
+ interface InputGuardrailResult extends GuardrailBaseResult {
3794
+ modifiedInput?: string | UIMessage[] | BaseMessage[];
3795
+ }
3796
+ interface OutputGuardrailArgs<TOutput = unknown> extends GuardrailContext {
3797
+ /**
3798
+ * The latest value after any previous guardrail modifications.
3799
+ */
3800
+ output: TOutput;
3801
+ /**
3802
+ * Optional plain text representation of the latest output value.
3803
+ */
3804
+ outputText?: string;
3805
+ /**
3806
+ * The original value produced by the model before guardrail modifications.
3807
+ */
3808
+ originalOutput: TOutput;
3809
+ /**
3810
+ * Optional plain text representation of the original output value.
3811
+ */
3812
+ originalOutputText?: string;
3813
+ /**
3814
+ * Optional usage metrics for the generation.
3815
+ */
3816
+ usage?: UsageInfo;
3817
+ /**
3818
+ * Optional finish reason from the model/provider.
3819
+ */
3820
+ finishReason?: string | null;
3821
+ /**
3822
+ * Optional warnings or diagnostics returned by the provider.
3823
+ */
3824
+ warnings?: unknown[] | null;
3825
+ }
3826
+ interface OutputGuardrailResult<TOutput = unknown> extends GuardrailBaseResult {
3827
+ modifiedOutput?: TOutput;
3828
+ }
3829
+ type InputGuardrail = GuardrailConfig<InputGuardrailArgs, InputGuardrailResult>;
3830
+ type OutputGuardrailFunction<TOutput = unknown> = GuardrailFunction<OutputGuardrailArgs<TOutput>, OutputGuardrailResult<TOutput>> & {
3831
+ guardrailStreamHandler?: OutputGuardrailStreamHandler;
3832
+ };
3833
+ interface OutputGuardrailDefinition<TOutput = unknown> extends GuardrailDefinition<OutputGuardrailArgs<TOutput>, OutputGuardrailResult<TOutput>> {
3834
+ streamHandler?: OutputGuardrailStreamHandler;
3835
+ }
3836
+ type OutputGuardrail<TOutput = unknown> = OutputGuardrailFunction<TOutput> | OutputGuardrailDefinition<TOutput>;
3720
3837
  /**
3721
3838
  * Agent configuration options
3722
3839
  */
@@ -3734,6 +3851,8 @@ type AgentOptions = {
3734
3851
  supervisorConfig?: SupervisorConfig;
3735
3852
  maxHistoryEntries?: number;
3736
3853
  hooks?: AgentHooks;
3854
+ inputGuardrails?: InputGuardrail[];
3855
+ outputGuardrails?: OutputGuardrail<any>[];
3737
3856
  temperature?: number;
3738
3857
  maxOutputTokens?: number;
3739
3858
  maxSteps?: number;
@@ -4244,6 +4363,8 @@ interface BaseGenerationOptions extends Partial<CallSettings> {
4244
4363
  stopWhen?: StopWhen;
4245
4364
  tools?: (Tool<any, any> | Toolkit)[];
4246
4365
  hooks?: AgentHooks;
4366
+ inputGuardrails?: InputGuardrail[];
4367
+ outputGuardrails?: OutputGuardrail<any>[];
4247
4368
  providerOptions?: ProviderOptions$1;
4248
4369
  experimental_output?: ReturnType<typeof Output.object> | ReturnType<typeof Output.text>;
4249
4370
  }
@@ -4281,6 +4402,8 @@ declare class Agent {
4281
4402
  private readonly voltOpsClient?;
4282
4403
  private readonly prompts?;
4283
4404
  private readonly evalConfig?;
4405
+ private readonly inputGuardrails;
4406
+ private readonly outputGuardrails;
4284
4407
  constructor(options: AgentOptions);
4285
4408
  /**
4286
4409
  * Generate text response
@@ -4298,6 +4421,7 @@ declare class Agent {
4298
4421
  * Stream structured object
4299
4422
  */
4300
4423
  streamObject<T extends z.ZodType>(input: string | UIMessage[] | BaseMessage[], schema: T, options?: StreamObjectOptions): Promise<StreamObjectResultWithContext<z.infer<T>>>;
4424
+ private resolveGuardrailSets;
4301
4425
  /**
4302
4426
  * Common preparation for all execution methods
4303
4427
  */
@@ -6465,6 +6589,117 @@ type CreateReasoningToolsOptions = {
6465
6589
  */
6466
6590
  declare const createReasoningTools: (options?: CreateReasoningToolsOptions) => Toolkit;
6467
6591
 
6592
+ type BaseGuardrailOptions = {
6593
+ id?: string;
6594
+ name?: string;
6595
+ description?: string;
6596
+ severity?: GuardrailSeverity;
6597
+ };
6598
+ type SensitiveNumberGuardrailOptions = BaseGuardrailOptions & {
6599
+ /**
6600
+ * Minimum digit run length that will be redacted.
6601
+ * @default 4
6602
+ */
6603
+ minimumDigits?: number;
6604
+ /**
6605
+ * Replacement text used for redacted segments.
6606
+ * @default "[redacted]"
6607
+ */
6608
+ replacement?: string;
6609
+ };
6610
+ type EmailGuardrailOptions = BaseGuardrailOptions & {
6611
+ replacement?: string;
6612
+ };
6613
+ type PhoneGuardrailOptions = BaseGuardrailOptions & {
6614
+ replacement?: string;
6615
+ };
6616
+ type ProfanityGuardrailMode = "redact" | "block";
6617
+ type ProfanityGuardrailOptions = BaseGuardrailOptions & {
6618
+ bannedWords?: string[];
6619
+ replacement?: string;
6620
+ mode?: ProfanityGuardrailMode;
6621
+ };
6622
+ type MaxLengthGuardrailMode = "truncate" | "block";
6623
+ type MaxLengthGuardrailOptions = BaseGuardrailOptions & {
6624
+ maxCharacters: number;
6625
+ mode?: MaxLengthGuardrailMode;
6626
+ };
6627
+ type InputGuardrailBaseOptions = BaseGuardrailOptions & {
6628
+ message?: string;
6629
+ };
6630
+ type ProfanityInputGuardrailOptions = InputGuardrailBaseOptions & {
6631
+ bannedWords?: string[];
6632
+ replacement?: string;
6633
+ mode?: "mask" | "block";
6634
+ };
6635
+ type PIIInputGuardrailOptions = InputGuardrailBaseOptions & {
6636
+ replacement?: string;
6637
+ maskEmails?: boolean;
6638
+ maskPhones?: boolean;
6639
+ };
6640
+ type PromptInjectionGuardrailOptions = InputGuardrailBaseOptions & {
6641
+ phrases?: string[];
6642
+ };
6643
+ type InputLengthGuardrailOptions = InputGuardrailBaseOptions & {
6644
+ maxCharacters: number;
6645
+ mode?: MaxLengthGuardrailMode;
6646
+ };
6647
+ type HTMLSanitizerGuardrailOptions = InputGuardrailBaseOptions & {
6648
+ allowBasicFormatting?: boolean;
6649
+ };
6650
+ /**
6651
+ * Creates a guardrail that redacts long numeric sequences such as account or card numbers.
6652
+ */
6653
+ declare function createSensitiveNumberGuardrail(options?: SensitiveNumberGuardrailOptions): OutputGuardrail<string>;
6654
+ /**
6655
+ * Creates a guardrail that redacts email addresses.
6656
+ */
6657
+ declare function createEmailRedactorGuardrail(options?: EmailGuardrailOptions): OutputGuardrail<string>;
6658
+ /**
6659
+ * Creates a guardrail that redacts common phone number patterns.
6660
+ */
6661
+ declare function createPhoneNumberGuardrail(options?: PhoneGuardrailOptions): OutputGuardrail<string>;
6662
+ /**
6663
+ * Creates a guardrail that detects profanity and either redacts or blocks output.
6664
+ */
6665
+ declare function createProfanityGuardrail(options?: ProfanityGuardrailOptions): OutputGuardrail<string>;
6666
+ /**
6667
+ * Guardrail that enforces a maximum character length.
6668
+ */
6669
+ declare function createMaxLengthGuardrail(options: MaxLengthGuardrailOptions): OutputGuardrail<string>;
6670
+ declare function createProfanityInputGuardrail(options?: ProfanityInputGuardrailOptions): InputGuardrail;
6671
+ declare function createPIIInputGuardrail(options?: PIIInputGuardrailOptions): InputGuardrail;
6672
+ declare function createPromptInjectionGuardrail(options?: PromptInjectionGuardrailOptions): InputGuardrail;
6673
+ declare function createInputLengthGuardrail(options: InputLengthGuardrailOptions): InputGuardrail;
6674
+ declare function createHTMLSanitizerInputGuardrail(options?: HTMLSanitizerGuardrailOptions): InputGuardrail;
6675
+ declare function createDefaultInputSafetyGuardrails(): InputGuardrail[];
6676
+ /**
6677
+ * Convenience helper that returns a collection of common PII guardrails.
6678
+ */
6679
+ declare function createDefaultPIIGuardrails(options?: {
6680
+ sensitiveNumber?: SensitiveNumberGuardrailOptions;
6681
+ email?: EmailGuardrailOptions;
6682
+ phone?: PhoneGuardrailOptions;
6683
+ }): OutputGuardrail<string>[];
6684
+ /**
6685
+ * Convenience helper that returns commonly recommended safety guardrails.
6686
+ */
6687
+ declare function createDefaultSafetyGuardrails(options?: {
6688
+ profanity?: ProfanityGuardrailOptions;
6689
+ maxLength?: MaxLengthGuardrailOptions;
6690
+ }): OutputGuardrail<string>[];
6691
+
6692
+ type EmptyGuardrailExtras = Record<never, never>;
6693
+ type CreateGuardrailDefinition<TArgs, TResult, TExtra extends Record<PropertyKey, unknown> = EmptyGuardrailExtras> = Omit<GuardrailDefinition<TArgs, TResult>, keyof TExtra | "handler"> & TExtra & {
6694
+ handler: GuardrailFunction<TArgs, TResult>;
6695
+ };
6696
+ type CreateInputGuardrailOptions = CreateGuardrailDefinition<InputGuardrailArgs, InputGuardrailResult>;
6697
+ type CreateOutputGuardrailOptions<TOutput = unknown> = CreateGuardrailDefinition<OutputGuardrailArgs<TOutput>, OutputGuardrailResult<TOutput>, {
6698
+ streamHandler?: OutputGuardrailStreamHandler;
6699
+ }>;
6700
+ declare function createInputGuardrail(options: CreateInputGuardrailOptions): InputGuardrail;
6701
+ declare function createOutputGuardrail<TOutput = unknown>(options: CreateOutputGuardrailOptions<TOutput>): OutputGuardrail<TOutput>;
6702
+
6468
6703
  /**
6469
6704
  * In-Memory Storage Adapter for Memory V2
6470
6705
  * Stores conversations and messages in memory
@@ -7404,6 +7639,7 @@ declare enum NodeType {
7404
7639
  MEMORY = "memory",
7405
7640
  MESSAGE = "message",
7406
7641
  OUTPUT = "output",
7642
+ GUARDRAIL = "guardrail",
7407
7643
  RETRIEVER = "retriever",
7408
7644
  VECTOR = "vector",
7409
7645
  EMBEDDING = "embedding",
@@ -8038,4 +8274,4 @@ declare class VoltAgent {
8038
8274
  */
8039
8275
  declare function convertUsage(usage: LanguageModelUsage | undefined): UsageInfo | undefined;
8040
8276
 
8041
- 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 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 Conversation as ConversationV2, type CreateConversationInput, type CreateConversationInput as CreateConversationInputV2, 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 GetMessagesOptions, 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 LLMProvider, LazyRemoteExportProcessor, type LocalScorerDefinition, type LocalScorerExecutionResult, LocalStorageSpanProcessor, type LogFilter, LoggerProxy, MCPConfiguration, type MCPElicitationAdapter, 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 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 OnHandoffHookArgs, type OnPrepareMessagesHookArgs, type OnPrepareMessagesHookResult, type OnPrepareModelMessagesHookArgs, type OnPrepareModelMessagesHookResult, type OnStartHookArgs, type OnStepFinishHookArgs, type OnToolEndHookArgs, type OnToolStartHookArgs, type OperationContext, 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 ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, 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, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, Tool, type ToolCall, ToolDeniedError, type ToolErrorInfo, type ToolExecuteOptions, ToolManager, type ToolOptions, type ToolSchema, type ToolStatus, type ToolStatusInfo, type ToolWithNodeId, type Toolkit, type Usage, type UsageInfo, 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 VoltOpsAppendEvalRunResultPayload, type VoltOpsAppendEvalRunResultsRequest, VoltOpsClient, type VoltOpsClientOptions, type VoltOpsCompleteEvalRunRequest, type VoltOpsCreateEvalRunRequest, type VoltOpsCreateScorerRequest, type VoltOpsEvalResultStatus, type VoltOpsEvalRunCompletionSummaryPayload, type VoltOpsEvalRunErrorPayload, type VoltOpsEvalRunResultLiveMetadata, type VoltOpsEvalRunResultScorePayload, type VoltOpsEvalRunStatus, type VoltOpsEvalRunSummary, VoltOpsPromptApiClient, type VoltOpsPromptManager, VoltOpsPromptManagerImpl, type VoltOpsScorerSummary, type VoltOpsTerminalEvalRunStatus, WebSocketEventEmitter, WebSocketLogProcessor, WebSocketSpanProcessor, type WeightedBlendComponent, type WeightedBlendOptions, type Workflow, type WorkflowConfig, type WorkflowExecutionContext, WorkflowRegistry, 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, createHooks, createNodeId, createPrompt, createReasoningTools, createRetrieverTool, createScorer, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolkit, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, getNodeTypeFromNodeId, getWorkflowStepNodeType, hasContent, hasFilePart, hasImagePart, hasTextPart, isAbortError, isNodeRuntime, isServerlessRuntime, isStructuredContent, isTextContent, isVoltAgentError, mapMessageContent, messageHelpers, normalizeContent, normalizeScorerResult, normalizeToArray, prependToMessage, readableLogRecordToObservabilityLog, readableSpanToObservabilitySpan, runLocalScorers, safeJsonParse, serializeValueForDebug, shouldSample, tool, transformTextContent, updateAllPackages, updateSinglePackage, weightedBlend, zodSchemaToJsonUI };
8277
+ 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 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 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 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, MCPConfiguration, type MCPElicitationAdapter, 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 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 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 ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, 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, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, Tool, type ToolCall, ToolDeniedError, type ToolErrorInfo, type ToolExecuteOptions, ToolManager, type ToolOptions, type ToolSchema, type ToolStatus, type ToolStatusInfo, type ToolWithNodeId, type Toolkit, type Usage, type UsageInfo, 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 VoltOpsAppendEvalRunResultPayload, type VoltOpsAppendEvalRunResultsRequest, VoltOpsClient, type VoltOpsClientOptions, type VoltOpsCompleteEvalRunRequest, type VoltOpsCreateEvalRunRequest, type VoltOpsCreateScorerRequest, type VoltOpsEvalResultStatus, type VoltOpsEvalRunCompletionSummaryPayload, type VoltOpsEvalRunErrorPayload, type VoltOpsEvalRunResultLiveMetadata, type VoltOpsEvalRunResultScorePayload, type VoltOpsEvalRunStatus, type VoltOpsEvalRunSummary, VoltOpsPromptApiClient, type VoltOpsPromptManager, VoltOpsPromptManagerImpl, type VoltOpsScorerSummary, type VoltOpsTerminalEvalRunStatus, WebSocketEventEmitter, WebSocketLogProcessor, WebSocketSpanProcessor, type WeightedBlendComponent, type WeightedBlendOptions, type Workflow, type WorkflowConfig, type WorkflowExecutionContext, WorkflowRegistry, 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, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, getNodeTypeFromNodeId, getWorkflowStepNodeType, hasContent, hasFilePart, hasImagePart, hasTextPart, isAbortError, isNodeRuntime, isServerlessRuntime, isStructuredContent, isTextContent, isVoltAgentError, mapMessageContent, messageHelpers, normalizeContent, normalizeScorerResult, normalizeToArray, prependToMessage, readableLogRecordToObservabilityLog, readableSpanToObservabilitySpan, runLocalScorers, safeJsonParse, serializeValueForDebug, shouldSample, tool, transformTextContent, updateAllPackages, updateSinglePackage, weightedBlend, zodSchemaToJsonUI };