Skip to content

Commit 9a3d2b6

Browse files
committed
Couple of tweaks
1 parent 6d90579 commit 9a3d2b6

File tree

1 file changed

+2
-1
lines changed
  • references/d3-chat/src/trigger

1 file changed

+2
-1
lines changed

references/d3-chat/src/trigger/chat.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const queryApprovalTask = schemaTask({
4444

4545
const token = await wait.createToken({
4646
tags: [`user:${userId}`, "approval"],
47-
timeout: "1m",
47+
timeout: "5m", // timeout in 5 minutes
4848
});
4949

5050
logger.info("waiting for approval", {
@@ -91,6 +91,7 @@ const executeSql = tool({
9191
query: z.string().describe("The SQL query to execute"),
9292
}),
9393
execute: async ({ query }) => {
94+
// DANGER: This is a dangerous tool, it can execute arbitrary SQL queries.
9495
const result = await sql.query(query);
9596

9697
return result.rows;

0 commit comments

Comments
 (0)