themissingCRAM
commited on
Commit
·
71a1eda
1
Parent(s):
c25281e
debug
Browse files
app.py
CHANGED
@@ -29,11 +29,8 @@ def dummy():
|
|
29 |
pass
|
30 |
|
31 |
|
32 |
-
engine = None
|
33 |
-
|
34 |
-
|
35 |
@tool
|
36 |
-
def sql_engine_tool(query: str, engine: any
|
37 |
"""
|
38 |
Allows you to perform SQL queries on the table. Returns a string representation of the result.
|
39 |
The table is named 'receipts'. Its description is as follows:
|
@@ -45,7 +42,7 @@ def sql_engine_tool(query: str, engine: any = engine) -> str:
|
|
45 |
|
46 |
Args:
|
47 |
query: The query to perform. This should be correct SQL.
|
48 |
-
engine:
|
49 |
"""
|
50 |
output = ""
|
51 |
print("debug sql_engine_tool")
|
|
|
29 |
pass
|
30 |
|
31 |
|
|
|
|
|
|
|
32 |
@tool
|
33 |
+
def sql_engine_tool(query: str, engine: any) -> str:
|
34 |
"""
|
35 |
Allows you to perform SQL queries on the table. Returns a string representation of the result.
|
36 |
The table is named 'receipts'. Its description is as follows:
|
|
|
42 |
|
43 |
Args:
|
44 |
query: The query to perform. This should be correct SQL.
|
45 |
+
engine: just use 'engine' as declared later
|
46 |
"""
|
47 |
output = ""
|
48 |
print("debug sql_engine_tool")
|