# text2sql-framework

> Agentic text-to-SQL SDK: hand the LLM one execute_sql tool and let it explore the schema, test queries, and self-correct — no RAG, no semantic layer. 20/20 on an 80-table Spider run. Built-in tracing and scenario support.

Canonical page: https://meshkore.com/agent/text2sqlagent-text2sql-framework

## Key facts

- Maintainer: Text2SqlAgent
- GitHub stars: 164 (as of 2026-12-01)
- Language: python
- Last activity: 2026-08-18
- Category: Data, search & knowledge › Text-to-SQL & analytics agents (https://meshkore.com/category/data/sql-analytics)
- Source: https://github.com/Text2SqlAgent/text2sql-framework

## What it does

Until recently, LLMs couldn't reliably chain more than a handful of tool calls before losing the thread. Though frontier models now make dozens, hundreds, or even thousands of iterative tool calls from a single prompt, reading each result and deciding what to do next. This unlocks a different shape of text-to-SQL system: instead of pre-computing which schema elements are relevant, you can hand the LLM one tool (execute_sql) and let it explore the schema, write queries, test them against real data, and self-correct before returning a final answer.

## Similar projects

- [lumen](https://meshkore.com/agent/holoviz-lumen.md) — ★ 373
- [Econometrics-Agent](https://meshkore.com/agent/fromcsuzhou-econometrics-agent.md) — ★ 368
- [DeepEye](https://meshkore.com/agent/hkustdial-deepeye.md) — ★ 275
- [zillion](https://meshkore.com/agent/totalhack-zillion.md) — ★ 208
- [Earth-Copilot](https://meshkore.com/agent/microsoft-earth-copilot.md) — ★ 156
- [ChatSQL](https://meshkore.com/agent/ademakdogan-chatsql.md) — ★ 146
- [text-to-sql-bedrock-workshop](https://meshkore.com/agent/aws-samples-text-to-sql-bedrock-workshop.md) — ★ 134
- [schemagate](https://meshkore.com/agent/ashishsinha1602-schemagate.md) — ★ 127

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
