The application uses ADK, Gemini, LangChain tools to power an SQL Agent.
Frontend: Streamlit app (streamlit_ui.py)
Backend: FastAPI service (main.py)
Agents:
- Coordinator: sql_agent (sql_agent.py)
- Subagents:
- Evaluate Result agent (evaluate_result.py)
Function Tools:
- get_schema tool (db_tools.py)
- run_sql_query tool (db_tools.py)
Models:
- Gemini 2.5 pro
git clone https://github.com/gabrielpreda/adk-sql-agent.git
cd adk-sql-agent
The file should contain the following:
GOOGLE_GENAI_USE_VERTEXAI=TRUE
GOOGLE_CLOUD_PROJECT=YOUR_PROJECT
GOOGLE_CLOUD_LOCATION=YOUR_REGION
Run:
pip install -r requirements.txt
Run:
uvicorn main:app --reload
Run:
streamlit run streamlit_ui.py