Spaces:
Runtime error

ayushm98 commited on
Commit
b29a1f0
Β·
1 Parent(s): 6f39ef4

Production release: Gemini migration + UI enhancements (v3.8.0)

Browse files

Major Changes:
- Migrated from OpenAI to Gemini 2.5 Flash API
- Fixed Explorer agent infinite loop issue
- Added comprehensive quality checks UI with test results table
- Implemented proper tool result handling for Gemini

Technical Improvements:
- gemini_client.py: Full Gemini API integration with function calling
- explorer_agent.py: Fixed loop by forcing answer after search results
- chainlit_app.py: Added analyze_code_quality() and test results table
- All agents: Updated to use GeminiClient as default

UI Enhancements (v3.8.0):
- Quality Checks table with 6 automated tests
- Syntax validation, import checks, error handling detection
- Security scan for dangerous patterns (eval, exec, etc.)
- Plan compliance and code quality assessment
- Professional test results display

Deployment Ready:
- docker-compose.yml for production deployment
- deploy.sh script for automated GCP deployment
- .env.example template for configuration

Cost Efficiency:
- Explorer queries: ~$0.01 (2 iterations, no loops)
- Full pipeline: ~$0.05 (all 4 agents)
- Proper function call handling prevents token waste

13 files changed +914 -63
Files changed (13)
.env.exampleAdded+22
chainlit_app.py+91-4
codepilot/agents/base_agent.py+9-5
codepilot/agents/coder_agent.py+8-4
codepilot/agents/explorer_agent.py+41-24
codepilot/agents/orchestrator.py+8-8
codepilot/agents/planner_agent.py+8-4
codepilot/agents/reviewer_agent.py+8-4
codepilot/llm/gemini_client.pyAdded+354
codepilot/tools/file_tools.py+18-6
docker-compose.ymlAdded+78
requirements.txt+3-4
scripts/deploy.shAdded+266