Skip to content

Commit e3db58f

Browse files
committed
fix unit tests
1 parent c3aea29 commit e3db58f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

backend/src/tools/stream-parser.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export async function processStreamWithTools(options: {
178178
let reasoning = false
179179
let messageId: string | null = null
180180
while (true) {
181-
const { value: chunk, done } = await stream.next()
181+
const { value: chunk, done } = await streamWithTags.next()
182182
if (done) {
183183
messageId = chunk
184184
break
@@ -217,6 +217,15 @@ export async function processStreamWithTools(options: {
217217
resolveStreamDonePromise()
218218
await previousToolCallFinished
219219

220+
console.log({
221+
toolCalls,
222+
toolResults,
223+
state,
224+
fullResponse: fullResponseChunks.join(''),
225+
fullResponseChunks,
226+
messageId,
227+
})
228+
220229
return {
221230
toolCalls,
222231
toolResults,

0 commit comments

Comments
 (0)