@voltagent/core 2.6.4 → 2.6.6

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
@@ -8390,6 +8390,35 @@ interface AgentEvalConfig {
8390
8390
  sampling?: AgentEvalSamplingPolicy;
8391
8391
  redact?: (payload: AgentEvalPayload) => AgentEvalPayload;
8392
8392
  }
8393
+ /**
8394
+ * Common generate options - internal version that includes historyEntryId
8395
+ * Not exposed directly to users
8396
+ */
8397
+ interface CommonSemanticMemoryOptions {
8398
+ enabled?: boolean;
8399
+ semanticLimit?: number;
8400
+ semanticThreshold?: number;
8401
+ mergeStrategy?: "prepend" | "append" | "interleave";
8402
+ }
8403
+ interface CommonRuntimeMemoryBehaviorOptions {
8404
+ contextLimit?: number;
8405
+ semanticMemory?: CommonSemanticMemoryOptions;
8406
+ conversationPersistence?: AgentConversationPersistenceOptions;
8407
+ }
8408
+ interface CommonRuntimeMemoryEnvelope {
8409
+ conversationId?: string;
8410
+ userId?: string;
8411
+ options?: CommonRuntimeMemoryBehaviorOptions;
8412
+ }
8413
+ type SemanticMemoryOptions = CommonSemanticMemoryOptions;
8414
+ type RuntimeMemoryEnvelope = CommonRuntimeMemoryEnvelope;
8415
+ interface CommonResolvedRuntimeMemoryOptions {
8416
+ userId?: string;
8417
+ conversationId?: string;
8418
+ contextLimit?: number;
8419
+ semanticMemory?: CommonSemanticMemoryOptions;
8420
+ conversationPersistence?: AgentConversationPersistenceOptions;
8421
+ }
8393
8422
  /**
8394
8423
  * Agent status information
8395
8424
  */
@@ -8459,6 +8488,8 @@ type OperationContext = {
8459
8488
  userId?: string;
8460
8489
  /** Optional conversation identifier associated with this operation */
8461
8490
  conversationId?: string;
8491
+ /** Resolved runtime memory options (memory envelope preferred, legacy as fallback) */
8492
+ resolvedMemory?: CommonResolvedRuntimeMemoryOptions;
8462
8493
  /** Workspace configured on the executing agent (if any). */
8463
8494
  workspace?: Workspace;
8464
8495
  /** User-managed context map for this operation */
@@ -9177,7 +9208,17 @@ interface GenerateObjectResultWithContext<T> extends GenerateObjectResult<T> {
9177
9208
  * Extends AI SDK's CallSettings for full compatibility
9178
9209
  */
9179
9210
  interface BaseGenerationOptions<TProviderOptions extends ProviderOptions$1 = ProviderOptions$1> extends Partial<CallSettings> {
9211
+ /**
9212
+ * Runtime memory envelope for per-call memory identity and behavior overrides.
9213
+ */
9214
+ memory?: RuntimeMemoryEnvelope;
9215
+ /**
9216
+ * @deprecated Use `memory.userId` instead.
9217
+ */
9180
9218
  userId?: string;
9219
+ /**
9220
+ * @deprecated Use `memory.conversationId` instead.
9221
+ */
9181
9222
  conversationId?: string;
9182
9223
  context?: ContextInput;
9183
9224
  elicitation?: (request: unknown) => Promise<unknown>;
@@ -9185,13 +9226,17 @@ interface BaseGenerationOptions<TProviderOptions extends ProviderOptions$1 = Pro
9185
9226
  parentOperationContext?: OperationContext;
9186
9227
  parentSpan?: Span;
9187
9228
  inheritParentSpan?: boolean;
9229
+ /**
9230
+ * @deprecated Use `memory.options.contextLimit` instead.
9231
+ */
9188
9232
  contextLimit?: number;
9189
- semanticMemory?: {
9190
- enabled?: boolean;
9191
- semanticLimit?: number;
9192
- semanticThreshold?: number;
9193
- mergeStrategy?: "prepend" | "append" | "interleave";
9194
- };
9233
+ /**
9234
+ * @deprecated Use `memory.options.semanticMemory` instead.
9235
+ */
9236
+ semanticMemory?: SemanticMemoryOptions;
9237
+ /**
9238
+ * @deprecated Use `memory.options.conversationPersistence` instead.
9239
+ */
9195
9240
  conversationPersistence?: AgentConversationPersistenceOptions;
9196
9241
  maxSteps?: number;
9197
9242
  feedback?: boolean | AgentFeedbackOptions;
@@ -9321,6 +9366,7 @@ declare class Agent {
9321
9366
  */
9322
9367
  private normalizeConversationPersistenceOptions;
9323
9368
  private resolveConversationPersistenceOptions;
9369
+ private resolveMemoryRuntimeOptions;
9324
9370
  private getConversationPersistenceOptionsForContext;
9325
9371
  /**
9326
9372
  * Create only the OperationContext (sync)
package/dist/index.d.ts CHANGED
@@ -8390,6 +8390,35 @@ interface AgentEvalConfig {
8390
8390
  sampling?: AgentEvalSamplingPolicy;
8391
8391
  redact?: (payload: AgentEvalPayload) => AgentEvalPayload;
8392
8392
  }
8393
+ /**
8394
+ * Common generate options - internal version that includes historyEntryId
8395
+ * Not exposed directly to users
8396
+ */
8397
+ interface CommonSemanticMemoryOptions {
8398
+ enabled?: boolean;
8399
+ semanticLimit?: number;
8400
+ semanticThreshold?: number;
8401
+ mergeStrategy?: "prepend" | "append" | "interleave";
8402
+ }
8403
+ interface CommonRuntimeMemoryBehaviorOptions {
8404
+ contextLimit?: number;
8405
+ semanticMemory?: CommonSemanticMemoryOptions;
8406
+ conversationPersistence?: AgentConversationPersistenceOptions;
8407
+ }
8408
+ interface CommonRuntimeMemoryEnvelope {
8409
+ conversationId?: string;
8410
+ userId?: string;
8411
+ options?: CommonRuntimeMemoryBehaviorOptions;
8412
+ }
8413
+ type SemanticMemoryOptions = CommonSemanticMemoryOptions;
8414
+ type RuntimeMemoryEnvelope = CommonRuntimeMemoryEnvelope;
8415
+ interface CommonResolvedRuntimeMemoryOptions {
8416
+ userId?: string;
8417
+ conversationId?: string;
8418
+ contextLimit?: number;
8419
+ semanticMemory?: CommonSemanticMemoryOptions;
8420
+ conversationPersistence?: AgentConversationPersistenceOptions;
8421
+ }
8393
8422
  /**
8394
8423
  * Agent status information
8395
8424
  */
@@ -8459,6 +8488,8 @@ type OperationContext = {
8459
8488
  userId?: string;
8460
8489
  /** Optional conversation identifier associated with this operation */
8461
8490
  conversationId?: string;
8491
+ /** Resolved runtime memory options (memory envelope preferred, legacy as fallback) */
8492
+ resolvedMemory?: CommonResolvedRuntimeMemoryOptions;
8462
8493
  /** Workspace configured on the executing agent (if any). */
8463
8494
  workspace?: Workspace;
8464
8495
  /** User-managed context map for this operation */
@@ -9177,7 +9208,17 @@ interface GenerateObjectResultWithContext<T> extends GenerateObjectResult<T> {
9177
9208
  * Extends AI SDK's CallSettings for full compatibility
9178
9209
  */
9179
9210
  interface BaseGenerationOptions<TProviderOptions extends ProviderOptions$1 = ProviderOptions$1> extends Partial<CallSettings> {
9211
+ /**
9212
+ * Runtime memory envelope for per-call memory identity and behavior overrides.
9213
+ */
9214
+ memory?: RuntimeMemoryEnvelope;
9215
+ /**
9216
+ * @deprecated Use `memory.userId` instead.
9217
+ */
9180
9218
  userId?: string;
9219
+ /**
9220
+ * @deprecated Use `memory.conversationId` instead.
9221
+ */
9181
9222
  conversationId?: string;
9182
9223
  context?: ContextInput;
9183
9224
  elicitation?: (request: unknown) => Promise<unknown>;
@@ -9185,13 +9226,17 @@ interface BaseGenerationOptions<TProviderOptions extends ProviderOptions$1 = Pro
9185
9226
  parentOperationContext?: OperationContext;
9186
9227
  parentSpan?: Span;
9187
9228
  inheritParentSpan?: boolean;
9229
+ /**
9230
+ * @deprecated Use `memory.options.contextLimit` instead.
9231
+ */
9188
9232
  contextLimit?: number;
9189
- semanticMemory?: {
9190
- enabled?: boolean;
9191
- semanticLimit?: number;
9192
- semanticThreshold?: number;
9193
- mergeStrategy?: "prepend" | "append" | "interleave";
9194
- };
9233
+ /**
9234
+ * @deprecated Use `memory.options.semanticMemory` instead.
9235
+ */
9236
+ semanticMemory?: SemanticMemoryOptions;
9237
+ /**
9238
+ * @deprecated Use `memory.options.conversationPersistence` instead.
9239
+ */
9195
9240
  conversationPersistence?: AgentConversationPersistenceOptions;
9196
9241
  maxSteps?: number;
9197
9242
  feedback?: boolean | AgentFeedbackOptions;
@@ -9321,6 +9366,7 @@ declare class Agent {
9321
9366
  */
9322
9367
  private normalizeConversationPersistenceOptions;
9323
9368
  private resolveConversationPersistenceOptions;
9369
+ private resolveMemoryRuntimeOptions;
9324
9370
  private getConversationPersistenceOptionsForContext;
9325
9371
  /**
9326
9372
  * Create only the OperationContext (sync)