@axiom-lattice/client-sdk 1.0.45 → 1.0.46

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.mjs CHANGED
@@ -1885,15 +1885,24 @@ var AbstractClient = class {
1885
1885
  * @returns A function that can be called to stop the stream
1886
1886
  */
1887
1887
  stream: (options, onEvent, onComplete, onError) => {
1888
+ const {
1889
+ command,
1890
+ threadId,
1891
+ files,
1892
+ background,
1893
+ enableReturnStateWhenSteamCompleted,
1894
+ ...rest
1895
+ } = options;
1888
1896
  const message = options.messages[options.messages.length - 1];
1889
1897
  return this.streamRequest(
1890
1898
  {
1891
1899
  threadId: options.threadId,
1892
1900
  message: typeof message.content === "string" ? message.content : JSON.stringify(message.content),
1893
1901
  streaming: true,
1894
- command: options.command,
1895
- background: options.background,
1896
- enableReturnStateWhenSteamCompleted: options.enableReturnStateWhenSteamCompleted
1902
+ command,
1903
+ background,
1904
+ enableReturnStateWhenSteamCompleted,
1905
+ ...rest
1897
1906
  },
1898
1907
  onEvent,
1899
1908
  onComplete,
@@ -2694,7 +2703,7 @@ function createSimpleMessageMerger() {
2694
2703
  );
2695
2704
  }
2696
2705
  function reset() {
2697
- messages.length = 0;
2706
+ messages = [];
2698
2707
  messageMap.clear();
2699
2708
  toolBuilders.clear();
2700
2709
  }