Skip to content

Commit 7ec4f3c

Browse files
committed
Update toolLoop.ts
1 parent 07cacff commit 7ec4f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/examples/server/toolLoop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export async function runToolLoop(
118118
if (error instanceof BreakToolLoopError) {
119119
return {answer: `${error.message}`, transcript: messages, usage};
120120
}
121-
console.log(error);
121+
console.error(error);
122122
throw new Error(`Tool call failed: ${error}`)
123123
}
124124

0 commit comments

Comments
 (0)