We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833f578 commit e86eebcCopy full SHA for e86eebc
libs/langchain-core/src/messages/ai.ts
@@ -318,7 +318,10 @@ export class AIMessageChunk<
318
for (const chunks of groupedToolCallChunks) {
319
let parsedArgs: Record<string, unknown> | null = null;
320
const name = chunks[0]?.name ?? "";
321
- const joinedArgs = chunks.map((c) => c.args || "").join("").trim();
+ const joinedArgs = chunks
322
+ .map((c) => c.args || "")
323
+ .join("")
324
+ .trim();
325
const argsStr = joinedArgs.length ? joinedArgs : "{}";
326
const id = chunks[0]?.id;
327
try {
0 commit comments