Commit 543d4c0
committed
Enhance database agent with schema and query logging features
- Introduced QuestionMeta model to encapsulate question, SQL, and prompt.
- Updated _parse_schema_to_knowledge to save DDL and DML records in JSON format.
- Modified question_to_sql to return QuestionMeta instead of raw SQL.
- Improved error handling in database manager to raise SQLExecutionError.
- Refactored prompt generation for question inference to use predefined templates.1 parent 022a5f9 commit 543d4c0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
0 commit comments