()
| 55 | ) |
| 56 | |
| 57 | def make_msg_with_schema_and_warnings(): |
| 58 | return ( |
| 59 | """ |
| 60 | Generate syntactically correct read-only SQL to answer the following question/command: {natural_language_query} |
| 61 | The following are schemas of tables you can query: |
| 62 | --------------------- |
| 63 | {schemas_str} |
| 64 | --------------------- |
| 65 | Make sure to write your answer in markdown format. |
| 66 | """ |
| 67 | # TODO: place warnings here |
| 68 | # i.e. "Make sure each value in the result table is not null."" |
| 69 | ) |
| 70 | |
| 71 | def is_read_only_query(sql_query: str) -> bool: |
| 72 | """ |
no outgoing calls
no test coverage detected