We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3aea29 commit e3db58fCopy full SHA for e3db58f
backend/src/tools/stream-parser.ts
@@ -178,7 +178,7 @@ export async function processStreamWithTools(options: {
178
let reasoning = false
179
let messageId: string | null = null
180
while (true) {
181
- const { value: chunk, done } = await stream.next()
+ const { value: chunk, done } = await streamWithTags.next()
182
if (done) {
183
messageId = chunk
184
break
@@ -217,6 +217,15 @@ export async function processStreamWithTools(options: {
217
resolveStreamDonePromise()
218
await previousToolCallFinished
219
220
+ console.log({
221
+ toolCalls,
222
+ toolResults,
223
+ state,
224
+ fullResponse: fullResponseChunks.join(''),
225
+ fullResponseChunks,
226
+ messageId,
227
+ })
228
+
229
return {
230
toolCalls,
231
toolResults,
0 commit comments