@axiom-lattice/client-sdk 2.1.30 → 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
@@ -3620,6 +3620,7 @@ function createSimpleMessageMerger() {
3620
3620
  updateToolCalls(message);
3621
3621
  }
3622
3622
  if (message.role === "tool" && chunk.data.tool_call_id) {
3623
+ const original_tool_message_id = chunk.data.id;
3623
3624
  const messageId = toolId_MessageIdMap.get(chunk.data.tool_call_id);
3624
3625
  if (!messageId)
3625
3626
  return;
@@ -3628,7 +3629,7 @@ function createSimpleMessageMerger() {
3628
3629
  const message2 = messages[messageIndex];
3629
3630
  message2.tool_calls = message2.tool_calls?.map((tc) => {
3630
3631
  if (tc.id === chunk.data.tool_call_id) {
3631
- return { ...tc, response: chunk.data.content, status: "success" };
3632
+ return { ...tc, response: chunk.data.content, status: "success", original_tool_message_id };
3632
3633
  }
3633
3634
  return tc;
3634
3635
  });