MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / make_msg_with_schema_and_warnings

Function make_msg_with_schema_and_warnings

byod/api/app/sql_generation/utils.py:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 )
56
57def 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
71def is_read_only_query(sql_query: str) -> bool:
72 """

Callers 1

text_to_sql_with_retryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected