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 6d90579 commit 9a3d2b6Copy full SHA for 9a3d2b6
references/d3-chat/src/trigger/chat.ts
@@ -44,7 +44,7 @@ const queryApprovalTask = schemaTask({
44
45
const token = await wait.createToken({
46
tags: [`user:${userId}`, "approval"],
47
- timeout: "1m",
+ timeout: "5m", // timeout in 5 minutes
48
});
49
50
logger.info("waiting for approval", {
@@ -91,6 +91,7 @@ const executeSql = tool({
91
query: z.string().describe("The SQL query to execute"),
92
}),
93
execute: async ({ query }) => {
94
+ // DANGER: This is a dangerous tool, it can execute arbitrary SQL queries.
95
const result = await sql.query(query);
96
97
return result.rows;
0 commit comments