Coding Task
Task: Create a REST API for user management
Language: Python
Context: Use FastAPI framework with JWT authentication, database integration, and CRUD operations
-
Planner Agent creates implementation plan:
- Define API endpoints structure
- Design data models
- Plan authentication strategy
- Database schema design
- Error handling approach
-
Coder Agent generates code:
- FastAPI application structure
- User model and Pydantic schemas
- JWT authentication middleware
- CRUD operations for users
- Database integration (SQLAlchemy)
- API documentation with Swagger
-
Reviewer Agent evaluates code:
- Accuracy Score: 0.95
- Completeness Score: 0.92
- Confidence Score: 0.94
- Code quality assessment
- Security review
- Best practices check
-
Refiner Agent improves code based on feedback
-
Report Agent generates implementation documentation
Complete FastAPI application including:
main.py- Application entry pointmodels.py- Database modelsschemas.py- Pydantic schemasauth.py- Authentication logicrouters/users.py- User endpointsrequirements.txt- Dependencies- API documentation
- Setup instructions
This example demonstrates how AgentForge AI can generate production-ready code, making it useful for:
- Rapid prototyping
- Learning framework patterns
- Boilerplate generation
- Code review and improvement
- Documentation generation