Skip to content

Commit de15639

Browse files
committed
pass tool-call chunk through promptAiSdkStream
1 parent 1ecbe4e commit de15639

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/src/impl/llm.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ export async function* promptAiSdkStream(
339339
}
340340
}
341341
}
342+
if (chunk.type === 'tool-call') {
343+
yield chunk
344+
}
342345
}
343346
const flushed = stopSequenceHandler.flush()
344347
if (flushed) {

0 commit comments

Comments
 (0)