@voltagent/core 1.1.22 → 1.1.23

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.js CHANGED
@@ -9793,7 +9793,13 @@ var ConversationBuffer = class {
9793
9793
  const existingPart = existingMessage.parts[existing.partIndex];
9794
9794
  if (existingPart) {
9795
9795
  existingPart.state = part.state ?? existingPart.state;
9796
- if ("input" in part) existingPart.input = part.input;
9796
+ if ("input" in part) {
9797
+ const incomingInput = part.input;
9798
+ const shouldUpdateInput = incomingInput !== void 0 && incomingInput !== null && (typeof incomingInput !== "object" || Object.keys(incomingInput).length > 0);
9799
+ if (shouldUpdateInput) {
9800
+ existingPart.input = incomingInput;
9801
+ }
9802
+ }
9797
9803
  if ("output" in part) existingPart.output = part.output;
9798
9804
  if (part.providerExecuted !== void 0) {
9799
9805
  existingPart.providerExecuted = part.providerExecuted;
@@ -12777,7 +12783,10 @@ ${toolkit.instructions}`;
12777
12783
  * Get Memory instance if available
12778
12784
  */
12779
12785
  getMemory() {
12780
- return this.memory;
12786
+ if (this.memory === false) {
12787
+ return false;
12788
+ }
12789
+ return this.memory ?? this.memoryManager.getMemory();
12781
12790
  }
12782
12791
  /**
12783
12792
  * Check if working memory is supported