Skip to content

Commit 0beba12

Browse files
Update examples/sql-agent/sql_agent.ts
Co-authored-by: Christian Bromann <git@bromann.dev>
1 parent 7745569 commit 0beba12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sql-agent/sql_agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ const queryToolWithInterrupt = tool(
314314
else if (response.type === "response") {
315315
const userFeedback = response.args;
316316
return userFeedback;
317-
} else {
318-
throw new Error(`Unsupported interrupt response type: ${response.type}`);
319317
}
318+
319+
throw new Error(`Unsupported interrupt response type: ${response.type}`);
320320
},
321321
{
322322
name: queryTool.name,

0 commit comments

Comments
 (0)