@axiom-lattice/client-sdk 2.1.29 → 2.1.31

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
@@ -2878,6 +2878,7 @@ var _Client = class extends AbstractClient {
2878
2878
  method: "POST",
2879
2879
  headers,
2880
2880
  body: JSON.stringify({
2881
+ assistant_id: options.assistantId,
2881
2882
  thread_id: options.threadId,
2882
2883
  message_id: options.messageId,
2883
2884
  known_content: options.knownContent,
@@ -3619,6 +3620,7 @@ function createSimpleMessageMerger() {
3619
3620
  updateToolCalls(message);
3620
3621
  }
3621
3622
  if (message.role === "tool" && chunk.data.tool_call_id) {
3623
+ const original_tool_message_id = chunk.data.id;
3622
3624
  const messageId = toolId_MessageIdMap.get(chunk.data.tool_call_id);
3623
3625
  if (!messageId)
3624
3626
  return;
@@ -3627,7 +3629,7 @@ function createSimpleMessageMerger() {
3627
3629
  const message2 = messages[messageIndex];
3628
3630
  message2.tool_calls = message2.tool_calls?.map((tc) => {
3629
3631
  if (tc.id === chunk.data.tool_call_id) {
3630
- return { ...tc, response: chunk.data.content, status: "success" };
3632
+ return { ...tc, response: chunk.data.content, status: "success", original_tool_message_id };
3631
3633
  }
3632
3634
  return tc;
3633
3635
  });