We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7745569 commit 0beba12Copy full SHA for 0beba12
examples/sql-agent/sql_agent.ts
@@ -314,9 +314,9 @@ const queryToolWithInterrupt = tool(
314
else if (response.type === "response") {
315
const userFeedback = response.args;
316
return userFeedback;
317
- } else {
318
- throw new Error(`Unsupported interrupt response type: ${response.type}`);
319
}
+
+ throw new Error(`Unsupported interrupt response type: ${response.type}`);
320
},
321
{
322
name: queryTool.name,
0 commit comments