@dvina/agents 0.3.2 → 0.3.3

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.cjs CHANGED
@@ -21390,13 +21390,14 @@ var LangchainAgent = class {
21390
21390
  );
21391
21391
  for (let tm of toolMessages) {
21392
21392
  const input2 = JSON.stringify(toolCallUpdates[tm.tool_call_id].args);
21393
+ const toolCall = this.toolCalls.find((tc) => tc.id == tm.tool_call_id);
21393
21394
  if (this.shouldStreamToolEvent(tm.name))
21394
21395
  contentBlocks.push({
21395
21396
  type: "tool_call",
21396
21397
  name: tm.name,
21397
21398
  toolKit: this.getToolKitMeta(tm.name).toolKit,
21398
21399
  toolKitIconUrl: this.getToolKitMeta(tm.name).toolKitIconUrl,
21399
- input: input2 == "{}" ? "" : null,
21400
+ input: toolCall ? JSON.stringify(toolCall.input) : null,
21400
21401
  output: tm.content.toString(),
21401
21402
  toolCallId: tm.tool_call_id
21402
21403
  });