Download src/models/sql_query.py from DataEyond/Agentic-Service-Data-Eyond-Catalog: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/sql_query.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/sql_query.py
-
curl -L -o sql_query.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/models/sql_query.py
313 Bytes
| """Structured output model for LLM-generated SQL queries.""" | |
| from pydantic import BaseModel, Field | |
| class SQLQuery(BaseModel): | |
| sql: str = Field(description="A single SQL SELECT statement. No markdown, no explanation inline.") | |
| reasoning: str = Field(description="One sentence: what this query answers.") | |