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/ae50194de0d72e5b8f551bb4325bec31bfa803be/src/models/sql_query.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@ae50194de0d72e5b8f551bb4325bec31bfa803be/src/models/sql_query.py
-
curl -L -o sql_query.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/ae50194de0d72e5b8f551bb4325bec31bfa803be/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.") | |