@voltagent/core 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -16,7 +16,7 @@ import { DangerouslyAllowAny, PlainObject } from '@voltagent/internal/types';
16
16
  import * as TF from 'type-fest';
17
17
  import { A2AServerLike, A2AServerDeps, A2AServerMetadata, A2AServerFactory } from '@voltagent/internal/a2a';
18
18
  import { MCPServerLike, MCPServerDeps, MCPServerMetadata, MCPServerFactory } from '@voltagent/internal/mcp';
19
- import { ElicitRequest, ElicitResult, ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
19
+ import { ElicitRequest, ElicitResult, ClientCapabilities, ListResourcesResult } from '@modelcontextprotocol/sdk/types.js';
20
20
 
21
21
  /**
22
22
  * Represents a collection of related tools with optional shared instructions.
@@ -2698,6 +2698,12 @@ interface PromptContent {
2698
2698
  labels?: string[];
2699
2699
  /** Tags array for categorization */
2700
2700
  tags?: string[];
2701
+ /** Prompt source location (e.g., "local-file" or "online") */
2702
+ source?: "local-file" | "online";
2703
+ /** Latest online version when available */
2704
+ latest_version?: number;
2705
+ /** Whether the local prompt is older than the online version */
2706
+ outdated?: boolean;
2701
2707
  /** LLM configuration from prompt */
2702
2708
  config?: {
2703
2709
  model?: string;
@@ -3112,9 +3118,14 @@ declare class VoltOpsClient implements VoltOpsClient$1 {
3112
3118
  private getManagedMemoryConversationSteps;
3113
3119
  /**
3114
3120
  * Static method to create prompt helper with priority-based fallback
3115
- * Priority: Agent VoltOpsClient > Global VoltOpsClient > Fallback instructions
3121
+ * Priority: Local prompts > Agent VoltOpsClient > Global VoltOpsClient > Fallback instructions
3116
3122
  */
3117
3123
  static createPromptHelperWithFallback(agentId: string, agentName: string, fallbackInstructions: string, agentVoltOpsClient?: VoltOpsClient): PromptHelper;
3124
+ /**
3125
+ * Create a prompt helper from available sources without fallback instructions.
3126
+ * Priority: Local prompts > Agent VoltOpsClient > Global VoltOpsClient.
3127
+ */
3128
+ static createPromptHelperFromSources(agentId: string, agentVoltOpsClient?: VoltOpsClient): PromptHelper | undefined;
3118
3129
  /**
3119
3130
  * Cleanup resources when client is no longer needed
3120
3131
  */
@@ -9708,10 +9719,10 @@ declare class MCPClient extends SimpleEventEmitter {
9708
9719
  */
9709
9720
  callTool(toolCall: MCPToolCall, options?: MCPClientCallOptions): Promise<MCPToolResult>;
9710
9721
  /**
9711
- * Retrieves a list of resource identifiers available on the server.
9712
- * @returns A promise resolving to an array of resource ID strings.
9722
+ * Retrieves a list of resources available on the server.
9723
+ * @returns A promise resolving to the MCP resources list response.
9713
9724
  */
9714
- listResources(): Promise<string[]>;
9725
+ listResources(): Promise<ListResourcesResult>;
9715
9726
  /**
9716
9727
  * Ensures the client is connected before proceeding with an operation.
9717
9728
  * Attempts to connect if not currently connected.
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ import { DangerouslyAllowAny, PlainObject } from '@voltagent/internal/types';
16
16
  import * as TF from 'type-fest';
17
17
  import { A2AServerLike, A2AServerDeps, A2AServerMetadata, A2AServerFactory } from '@voltagent/internal/a2a';
18
18
  import { MCPServerLike, MCPServerDeps, MCPServerMetadata, MCPServerFactory } from '@voltagent/internal/mcp';
19
- import { ElicitRequest, ElicitResult, ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
19
+ import { ElicitRequest, ElicitResult, ClientCapabilities, ListResourcesResult } from '@modelcontextprotocol/sdk/types.js';
20
20
 
21
21
  /**
22
22
  * Represents a collection of related tools with optional shared instructions.
@@ -2698,6 +2698,12 @@ interface PromptContent {
2698
2698
  labels?: string[];
2699
2699
  /** Tags array for categorization */
2700
2700
  tags?: string[];
2701
+ /** Prompt source location (e.g., "local-file" or "online") */
2702
+ source?: "local-file" | "online";
2703
+ /** Latest online version when available */
2704
+ latest_version?: number;
2705
+ /** Whether the local prompt is older than the online version */
2706
+ outdated?: boolean;
2701
2707
  /** LLM configuration from prompt */
2702
2708
  config?: {
2703
2709
  model?: string;
@@ -3112,9 +3118,14 @@ declare class VoltOpsClient implements VoltOpsClient$1 {
3112
3118
  private getManagedMemoryConversationSteps;
3113
3119
  /**
3114
3120
  * Static method to create prompt helper with priority-based fallback
3115
- * Priority: Agent VoltOpsClient > Global VoltOpsClient > Fallback instructions
3121
+ * Priority: Local prompts > Agent VoltOpsClient > Global VoltOpsClient > Fallback instructions
3116
3122
  */
3117
3123
  static createPromptHelperWithFallback(agentId: string, agentName: string, fallbackInstructions: string, agentVoltOpsClient?: VoltOpsClient): PromptHelper;
3124
+ /**
3125
+ * Create a prompt helper from available sources without fallback instructions.
3126
+ * Priority: Local prompts > Agent VoltOpsClient > Global VoltOpsClient.
3127
+ */
3128
+ static createPromptHelperFromSources(agentId: string, agentVoltOpsClient?: VoltOpsClient): PromptHelper | undefined;
3118
3129
  /**
3119
3130
  * Cleanup resources when client is no longer needed
3120
3131
  */
@@ -9708,10 +9719,10 @@ declare class MCPClient extends SimpleEventEmitter {
9708
9719
  */
9709
9720
  callTool(toolCall: MCPToolCall, options?: MCPClientCallOptions): Promise<MCPToolResult>;
9710
9721
  /**
9711
- * Retrieves a list of resource identifiers available on the server.
9712
- * @returns A promise resolving to an array of resource ID strings.
9722
+ * Retrieves a list of resources available on the server.
9723
+ * @returns A promise resolving to the MCP resources list response.
9713
9724
  */
9714
- listResources(): Promise<string[]>;
9725
+ listResources(): Promise<ListResourcesResult>;
9715
9726
  /**
9716
9727
  * Ensures the client is connected before proceeding with an operation.
9717
9728
  * Attempts to connect if not currently connected.