Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.59 KB

File metadata and controls

62 lines (47 loc) · 1.59 KB

Coding Workflow Example: REST API Implementation

Workflow Type

Coding Task

Input Parameters

Task: Create a REST API for user management

Language: Python

Context: Use FastAPI framework with JWT authentication, database integration, and CRUD operations

Expected Execution Flow

  1. Planner Agent creates implementation plan:

    • Define API endpoints structure
    • Design data models
    • Plan authentication strategy
    • Database schema design
    • Error handling approach
  2. 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
  3. Reviewer Agent evaluates code:

    • Accuracy Score: 0.95
    • Completeness Score: 0.92
    • Confidence Score: 0.94
    • Code quality assessment
    • Security review
    • Best practices check
  4. Refiner Agent improves code based on feedback

  5. Report Agent generates implementation documentation

Expected Output

Complete FastAPI application including:

  • main.py - Application entry point
  • models.py - Database models
  • schemas.py - Pydantic schemas
  • auth.py - Authentication logic
  • routers/users.py - User endpoints
  • requirements.txt - Dependencies
  • API documentation
  • Setup instructions

Use Case

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