Skip to content

Commit e86eebc

Browse files
committed
cr
1 parent 833f578 commit e86eebc

File tree

1 file changed

+4
-1
lines changed
  • libs/langchain-core/src/messages

1 file changed

+4
-1
lines changed

libs/langchain-core/src/messages/ai.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,10 @@ export class AIMessageChunk<
318318
for (const chunks of groupedToolCallChunks) {
319319
let parsedArgs: Record<string, unknown> | null = null;
320320
const name = chunks[0]?.name ?? "";
321-
const joinedArgs = chunks.map((c) => c.args || "").join("").trim();
321+
const joinedArgs = chunks
322+
.map((c) => c.args || "")
323+
.join("")
324+
.trim();
322325
const argsStr = joinedArgs.length ? joinedArgs : "{}";
323326
const id = chunks[0]?.id;
324327
try {

0 commit comments

Comments
 (0)