@dvina/agents 0.3.1 → 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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -4
package/dist/index.js
CHANGED
|
@@ -21384,13 +21384,14 @@ var LangchainAgent = class {
|
|
|
21384
21384
|
);
|
|
21385
21385
|
for (let tm of toolMessages) {
|
|
21386
21386
|
const input2 = JSON.stringify(toolCallUpdates[tm.tool_call_id].args);
|
|
21387
|
+
const toolCall = this.toolCalls.find((tc) => tc.id == tm.tool_call_id);
|
|
21387
21388
|
if (this.shouldStreamToolEvent(tm.name))
|
|
21388
21389
|
contentBlocks.push({
|
|
21389
21390
|
type: "tool_call",
|
|
21390
21391
|
name: tm.name,
|
|
21391
21392
|
toolKit: this.getToolKitMeta(tm.name).toolKit,
|
|
21392
21393
|
toolKitIconUrl: this.getToolKitMeta(tm.name).toolKitIconUrl,
|
|
21393
|
-
input:
|
|
21394
|
+
input: toolCall ? JSON.stringify(toolCall.input) : null,
|
|
21394
21395
|
output: tm.content.toString(),
|
|
21395
21396
|
toolCallId: tm.tool_call_id
|
|
21396
21397
|
});
|