@voltagent/core 1.3.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 +376 -115
- package/dist/index.d.ts +376 -115
- package/dist/index.js +466 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +463 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ import { DangerouslyAllowAny, PlainObject } from '@voltagent/internal/types';
|
|
|
16
16
|
import * as TF from 'type-fest';
|
|
17
17
|
import { A2AServerLike, A2AServerDeps, A2AServerMetadata, A2AServerFactory } from '@voltagent/internal/a2a';
|
|
18
18
|
import { MCPServerLike, MCPServerDeps, MCPServerMetadata, MCPServerFactory } from '@voltagent/internal/mcp';
|
|
19
|
-
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
19
|
+
import { ElicitRequest, ElicitResult, ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Represents a collection of related tools with optional shared instructions.
|
|
@@ -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
|
*/
|
|
@@ -8516,6 +8526,126 @@ declare class MCPAuthorizationError extends Error {
|
|
|
8516
8526
|
constructor(toolName: string, serverName: string, reason?: string);
|
|
8517
8527
|
}
|
|
8518
8528
|
|
|
8529
|
+
/**
|
|
8530
|
+
* Handler function for processing user input requests from MCP servers.
|
|
8531
|
+
* Called when the server needs additional information during tool execution.
|
|
8532
|
+
*/
|
|
8533
|
+
type UserInputHandler = (request: ElicitRequest["params"]) => Promise<ElicitResult>;
|
|
8534
|
+
/**
|
|
8535
|
+
* Internal callback type for notifying MCPClient when handler changes.
|
|
8536
|
+
* @internal
|
|
8537
|
+
*/
|
|
8538
|
+
type HandlerChangeCallback = (handler: UserInputHandler | undefined) => void;
|
|
8539
|
+
/**
|
|
8540
|
+
* Bridge for handling user input requests from MCP servers.
|
|
8541
|
+
*
|
|
8542
|
+
* Provides a fluent API for registering handlers that process elicitation
|
|
8543
|
+
* requests during tool execution. Handlers can be set permanently, used
|
|
8544
|
+
* once, or removed dynamically at runtime.
|
|
8545
|
+
*
|
|
8546
|
+
* @example
|
|
8547
|
+
* ```typescript
|
|
8548
|
+
* // Set a permanent handler
|
|
8549
|
+
* mcpClient.elicitation.setHandler(async (request) => {
|
|
8550
|
+
* const confirmed = await askUser(request.message);
|
|
8551
|
+
* return {
|
|
8552
|
+
* action: confirmed ? "accept" : "decline",
|
|
8553
|
+
* content: confirmed ? { confirmed: true } : undefined,
|
|
8554
|
+
* };
|
|
8555
|
+
* });
|
|
8556
|
+
*
|
|
8557
|
+
* // Set a one-time handler
|
|
8558
|
+
* mcpClient.elicitation.once(async (request) => {
|
|
8559
|
+
* return { action: "accept", content: { approved: true } };
|
|
8560
|
+
* });
|
|
8561
|
+
*
|
|
8562
|
+
* // Remove the handler
|
|
8563
|
+
* mcpClient.elicitation.removeHandler();
|
|
8564
|
+
* ```
|
|
8565
|
+
*/
|
|
8566
|
+
declare class UserInputBridge {
|
|
8567
|
+
private handler;
|
|
8568
|
+
private readonly logger;
|
|
8569
|
+
private readonly onHandlerChange;
|
|
8570
|
+
/**
|
|
8571
|
+
* @internal
|
|
8572
|
+
*/
|
|
8573
|
+
constructor(logger: Logger, onHandlerChange: HandlerChangeCallback);
|
|
8574
|
+
/**
|
|
8575
|
+
* Whether a handler is currently registered.
|
|
8576
|
+
*/
|
|
8577
|
+
get hasHandler(): boolean;
|
|
8578
|
+
/**
|
|
8579
|
+
* Gets the current handler.
|
|
8580
|
+
*
|
|
8581
|
+
* @internal
|
|
8582
|
+
* @returns The current handler or undefined if none is set
|
|
8583
|
+
*/
|
|
8584
|
+
getHandler(): UserInputHandler | undefined;
|
|
8585
|
+
/**
|
|
8586
|
+
* Registers a handler for processing user input requests.
|
|
8587
|
+
*
|
|
8588
|
+
* The handler will be called each time the MCP server requests
|
|
8589
|
+
* additional information during tool execution.
|
|
8590
|
+
*
|
|
8591
|
+
* @param handler - Function to process user input requests
|
|
8592
|
+
* @returns This bridge instance for chaining
|
|
8593
|
+
*
|
|
8594
|
+
* @example
|
|
8595
|
+
* ```typescript
|
|
8596
|
+
* mcpClient.elicitation.setHandler(async (request) => {
|
|
8597
|
+
* console.log("Server asks:", request.message);
|
|
8598
|
+
* const userInput = await promptUser(request.requestedSchema);
|
|
8599
|
+
* return { action: "accept", content: userInput };
|
|
8600
|
+
* });
|
|
8601
|
+
* ```
|
|
8602
|
+
*/
|
|
8603
|
+
setHandler(handler: UserInputHandler): this;
|
|
8604
|
+
/**
|
|
8605
|
+
* Registers a one-time handler that automatically removes itself after use.
|
|
8606
|
+
*
|
|
8607
|
+
* Useful for handling a single expected user input request without
|
|
8608
|
+
* leaving a permanent handler in place.
|
|
8609
|
+
*
|
|
8610
|
+
* @param handler - Function to process the next user input request
|
|
8611
|
+
* @returns This bridge instance for chaining
|
|
8612
|
+
*
|
|
8613
|
+
* @example
|
|
8614
|
+
* ```typescript
|
|
8615
|
+
* // Handle only the next elicitation request
|
|
8616
|
+
* mcpClient.elicitation.once(async (request) => {
|
|
8617
|
+
* return { action: "accept", content: { confirmed: true } };
|
|
8618
|
+
* });
|
|
8619
|
+
* ```
|
|
8620
|
+
*/
|
|
8621
|
+
once(handler: UserInputHandler): this;
|
|
8622
|
+
/**
|
|
8623
|
+
* Removes the current handler.
|
|
8624
|
+
*
|
|
8625
|
+
* After calling this, user input requests from the server will
|
|
8626
|
+
* be automatically cancelled until a new handler is set.
|
|
8627
|
+
*
|
|
8628
|
+
* @returns This bridge instance for chaining
|
|
8629
|
+
*/
|
|
8630
|
+
removeHandler(): this;
|
|
8631
|
+
/**
|
|
8632
|
+
* Processes a user input request using the registered handler.
|
|
8633
|
+
*
|
|
8634
|
+
* @internal
|
|
8635
|
+
* @param request - The elicitation request from the server
|
|
8636
|
+
* @returns The user's response or a cancel action if no handler
|
|
8637
|
+
*/
|
|
8638
|
+
processRequest(request: ElicitRequest["params"]): Promise<ElicitResult>;
|
|
8639
|
+
}
|
|
8640
|
+
|
|
8641
|
+
/**
|
|
8642
|
+
* Handler for elicitation requests from the MCP server.
|
|
8643
|
+
* Called when the server needs user input during tool execution.
|
|
8644
|
+
*
|
|
8645
|
+
* @deprecated Use `UserInputHandler` from `UserInputBridge` instead for dynamic handler registration.
|
|
8646
|
+
*/
|
|
8647
|
+
type MCPElicitationHandler = (request: ElicitRequest["params"]) => Promise<ElicitResult>;
|
|
8648
|
+
|
|
8519
8649
|
/**
|
|
8520
8650
|
* Client information for MCP
|
|
8521
8651
|
*/
|
|
@@ -8567,6 +8697,35 @@ type MCPClientConfig = {
|
|
|
8567
8697
|
* @default 30000
|
|
8568
8698
|
*/
|
|
8569
8699
|
timeout?: number;
|
|
8700
|
+
/**
|
|
8701
|
+
* Elicitation handler for receiving user input requests from the MCP server.
|
|
8702
|
+
* When the server needs additional information during tool execution,
|
|
8703
|
+
* this handler will be called with the request details.
|
|
8704
|
+
*
|
|
8705
|
+
* @example
|
|
8706
|
+
* ```typescript
|
|
8707
|
+
* const mcpClient = new MCPClient({
|
|
8708
|
+
* clientInfo: { name: "my-client", version: "1.0.0" },
|
|
8709
|
+
* server: { type: "stdio", command: "my-mcp-server" },
|
|
8710
|
+
* elicitation: {
|
|
8711
|
+
* onRequest: async (request) => {
|
|
8712
|
+
* const confirmed = await askUserForConfirmation(request.message);
|
|
8713
|
+
* return {
|
|
8714
|
+
* action: confirmed ? "accept" : "decline",
|
|
8715
|
+
* content: confirmed ? { confirmed: true } : undefined,
|
|
8716
|
+
* };
|
|
8717
|
+
* },
|
|
8718
|
+
* },
|
|
8719
|
+
* });
|
|
8720
|
+
* ```
|
|
8721
|
+
*/
|
|
8722
|
+
elicitation?: {
|
|
8723
|
+
/**
|
|
8724
|
+
* Handler called when the MCP server requests user input.
|
|
8725
|
+
* Must return an ElicitResult with action: "accept", "decline", or "cancel".
|
|
8726
|
+
*/
|
|
8727
|
+
onRequest: MCPElicitationHandler;
|
|
8728
|
+
};
|
|
8570
8729
|
};
|
|
8571
8730
|
/**
|
|
8572
8731
|
* MCP server configuration options
|
|
@@ -8814,6 +8973,19 @@ declare class MCPClient extends SimpleEventEmitter {
|
|
|
8814
8973
|
* Client capabilities for re-initialization.
|
|
8815
8974
|
*/
|
|
8816
8975
|
private readonly capabilities;
|
|
8976
|
+
/**
|
|
8977
|
+
* Bridge for handling user input requests from the server.
|
|
8978
|
+
* Provides methods to dynamically register and manage input handlers.
|
|
8979
|
+
*
|
|
8980
|
+
* @example
|
|
8981
|
+
* ```typescript
|
|
8982
|
+
* mcpClient.elicitation.setHandler(async (request) => {
|
|
8983
|
+
* const confirmed = await askUser(request.message);
|
|
8984
|
+
* return { action: confirmed ? "accept" : "decline" };
|
|
8985
|
+
* });
|
|
8986
|
+
* ```
|
|
8987
|
+
*/
|
|
8988
|
+
readonly elicitation: UserInputBridge;
|
|
8817
8989
|
/**
|
|
8818
8990
|
* Get server info for logging
|
|
8819
8991
|
*/
|
|
@@ -8827,6 +8999,17 @@ declare class MCPClient extends SimpleEventEmitter {
|
|
|
8827
8999
|
* Sets up handlers for events from the underlying SDK client.
|
|
8828
9000
|
*/
|
|
8829
9001
|
private setupEventHandlers;
|
|
9002
|
+
/**
|
|
9003
|
+
* Registers the elicitation request handler with the MCP SDK client.
|
|
9004
|
+
* Delegates to UserInputBridge for actual handling.
|
|
9005
|
+
*/
|
|
9006
|
+
private registerElicitationHandler;
|
|
9007
|
+
/**
|
|
9008
|
+
* Callback invoked when the elicitation handler changes.
|
|
9009
|
+
* Currently a no-op since we always delegate to UserInputBridge.
|
|
9010
|
+
* @internal
|
|
9011
|
+
*/
|
|
9012
|
+
private updateElicitationHandler;
|
|
8830
9013
|
/**
|
|
8831
9014
|
* Establishes a connection to the configured MCP server.
|
|
8832
9015
|
* Idempotent: does nothing if already connected.
|
|
@@ -10436,6 +10619,197 @@ declare const isServerlessRuntime: () => boolean;
|
|
|
10436
10619
|
declare const isNodeRuntime: () => boolean;
|
|
10437
10620
|
declare const getEnvVar: (key: string) => string | undefined;
|
|
10438
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
|
+
|
|
10439
10813
|
/**
|
|
10440
10814
|
* Creates an AgentTool from a retriever, allowing it to be used as a tool in an agent.
|
|
10441
10815
|
* This is the preferred way to use a retriever as a tool, as it properly maintains the 'this' context.
|
|
@@ -10609,119 +10983,6 @@ declare const updateSinglePackage: (packageName: string, packagePath?: string) =
|
|
|
10609
10983
|
requiresRestart?: boolean;
|
|
10610
10984
|
}>;
|
|
10611
10985
|
|
|
10612
|
-
/**
|
|
10613
|
-
* Prompt manager with caching and Liquid template processing
|
|
10614
|
-
*/
|
|
10615
|
-
|
|
10616
|
-
/**
|
|
10617
|
-
* Implementation of VoltOpsPromptManager with caching and Liquid templates
|
|
10618
|
-
*/
|
|
10619
|
-
declare class VoltOpsPromptManagerImpl implements VoltOpsPromptManager {
|
|
10620
|
-
private readonly cache;
|
|
10621
|
-
private readonly apiClient;
|
|
10622
|
-
private readonly templateEngine;
|
|
10623
|
-
private readonly cacheConfig;
|
|
10624
|
-
private readonly logger;
|
|
10625
|
-
constructor(options: VoltOpsClientOptions);
|
|
10626
|
-
/**
|
|
10627
|
-
* Get prompt content by reference with caching and template processing
|
|
10628
|
-
*/
|
|
10629
|
-
getPrompt(reference: PromptReference): Promise<PromptContent>;
|
|
10630
|
-
/**
|
|
10631
|
-
* Preload prompts for better performance
|
|
10632
|
-
*/
|
|
10633
|
-
preload(references: PromptReference[]): Promise<void>;
|
|
10634
|
-
/**
|
|
10635
|
-
* Clear cache
|
|
10636
|
-
*/
|
|
10637
|
-
clearCache(): void;
|
|
10638
|
-
/**
|
|
10639
|
-
* Get cache statistics
|
|
10640
|
-
*/
|
|
10641
|
-
getCacheStats(): {
|
|
10642
|
-
size: number;
|
|
10643
|
-
entries: string[];
|
|
10644
|
-
};
|
|
10645
|
-
/**
|
|
10646
|
-
* Convert API response to PromptContent with metadata
|
|
10647
|
-
*/
|
|
10648
|
-
private convertApiResponseToPromptContent;
|
|
10649
|
-
/**
|
|
10650
|
-
* Generate cache key for prompt reference
|
|
10651
|
-
*/
|
|
10652
|
-
private getCacheKey;
|
|
10653
|
-
/**
|
|
10654
|
-
* Get cached prompt if valid
|
|
10655
|
-
*/
|
|
10656
|
-
private getCachedPrompt;
|
|
10657
|
-
/**
|
|
10658
|
-
* Set cached prompt with TTL and size limit enforcement
|
|
10659
|
-
*/
|
|
10660
|
-
private setCachedPrompt;
|
|
10661
|
-
/**
|
|
10662
|
-
* Evict oldest cache entry to make room for new one
|
|
10663
|
-
*/
|
|
10664
|
-
private evictOldestEntry;
|
|
10665
|
-
/**
|
|
10666
|
-
* Process template variables using configured template engine
|
|
10667
|
-
*/
|
|
10668
|
-
private processTemplate;
|
|
10669
|
-
/**
|
|
10670
|
-
* Process PromptContent with template processing
|
|
10671
|
-
*/
|
|
10672
|
-
private processPromptContent;
|
|
10673
|
-
/**
|
|
10674
|
-
* Process MessageContent (can be string or array of parts)
|
|
10675
|
-
*/
|
|
10676
|
-
private processMessageContent;
|
|
10677
|
-
}
|
|
10678
|
-
|
|
10679
|
-
/**
|
|
10680
|
-
* API client for prompt operations
|
|
10681
|
-
*/
|
|
10682
|
-
|
|
10683
|
-
/**
|
|
10684
|
-
* Implementation of PromptApiClient for VoltOps API communication
|
|
10685
|
-
*/
|
|
10686
|
-
declare class VoltOpsPromptApiClient implements PromptApiClient {
|
|
10687
|
-
private readonly baseUrl;
|
|
10688
|
-
private readonly publicKey;
|
|
10689
|
-
private readonly secretKey;
|
|
10690
|
-
private readonly fetchFn;
|
|
10691
|
-
private readonly logger;
|
|
10692
|
-
constructor(options: VoltOpsClientOptions);
|
|
10693
|
-
/**
|
|
10694
|
-
* Fetch prompt content from VoltOps API
|
|
10695
|
-
*/
|
|
10696
|
-
fetchPrompt(reference: PromptReference): Promise<PromptApiResponse>;
|
|
10697
|
-
/**
|
|
10698
|
-
* Build URL for prompt API endpoint
|
|
10699
|
-
*/
|
|
10700
|
-
private buildPromptUrl;
|
|
10701
|
-
/**
|
|
10702
|
-
* Build authentication headers
|
|
10703
|
-
*/
|
|
10704
|
-
private buildHeaders;
|
|
10705
|
-
}
|
|
10706
|
-
|
|
10707
|
-
/**
|
|
10708
|
-
* Simple template engine for basic variable substitution
|
|
10709
|
-
*/
|
|
10710
|
-
/**
|
|
10711
|
-
* Template engine interface
|
|
10712
|
-
*/
|
|
10713
|
-
type TemplateEngine = {
|
|
10714
|
-
/** Process template with variables */
|
|
10715
|
-
process: (content: string, variables: Record<string, any>) => string;
|
|
10716
|
-
/** Engine name for debugging */
|
|
10717
|
-
name: string;
|
|
10718
|
-
};
|
|
10719
|
-
/**
|
|
10720
|
-
* Simple mustache-style template engine (built-in, no dependencies)
|
|
10721
|
-
* Supports {{variable}} syntax for basic variable substitution
|
|
10722
|
-
*/
|
|
10723
|
-
declare const createSimpleTemplateEngine: () => TemplateEngine;
|
|
10724
|
-
|
|
10725
10986
|
/**
|
|
10726
10987
|
* Main VoltAgent class for managing agents and server
|
|
10727
10988
|
*/
|
|
@@ -10838,4 +11099,4 @@ declare class VoltAgent {
|
|
|
10838
11099
|
*/
|
|
10839
11100
|
declare function convertUsage(usage: LanguageModelUsage | undefined): UsageInfo | undefined;
|
|
10840
11101
|
|
|
10841
|
-
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, type MCPClientCallOptions, MCPConfiguration, type MCPConfigurationOptions, 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 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, 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 };
|