MVP / dev-agent /README.md
github-actions[bot]
Deploy application
595d60e
|
Raw History Blame Contribute Delete
2.61 kB
# Universal Dev Agent
The **Universal Dev Agent** converts natural-language user requirements into validated, structured, platform-independent **Agent Specs**.
It acts as an interactive builder, allowing developers and end-users to design workflows, map connections, resolve dependency chains, and validate agent schemas through conversational chat and APIs.
---
## Quick Start
### 1. Recreate Environment & Install
Ensure you have Python 3.12 installed:
```bash
py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
```
### 2. Apply Migrations
Initialize SQLite database tables:
```bash
python -m alembic upgrade head
```
### 3. Run FastAPI Server
```bash
uvicorn app.main:app --reload
```
API Documentation: `http://localhost:8000/docs`
### 4. Run Conversational CLI
```bash
python -m app.cli
```
---
## Repository Map
```text
dev-agent/
β”‚
β”œβ”€β”€ app/
β”‚ β”œβ”€β”€ main.py # FastAPI server entry point
β”‚ β”œβ”€β”€ cli.py # Stateful interactive CLI
β”‚ β”‚
β”‚ β”œβ”€β”€ api/ # API router and session routes
β”‚ β”‚
β”‚ β”œβ”€β”€ core/ # App settings, logging config
β”‚ β”‚
β”‚ β”œβ”€β”€ db/ # SQLite connection and SQLAlchemy schemas
β”‚ β”‚
β”‚ β”œβ”€β”€ schemas/ # Pydantic schemas (AgentSpec, validation)
β”‚ β”‚
β”‚ β”œβ”€β”€ agents/ # LangGraph workflow, nodes, and states
β”‚ β”‚
β”‚ β”œβ”€β”€ validators/ # Validation layer (Schema, Workflow, Conflict)
β”‚ β”‚
β”‚ └── services/ # Business services (Validation, LLM with fallback)
β”‚
β”œβ”€β”€ tests/ # 20+ automated test cases
└── alembic/ # Database migration scripts
```
---
## Running Automated Tests
Run the test suite with Python's UTF-8 mode enabled on Windows:
```bash
$env:PYTHONUTF8=1; python -m pytest
```
---
## Detailed Documentation
* **[ARCHITECTURE.md](file:///d:/Universal%20Agent/dev-agent/ARCHITECTURE.md)**: Architectural layout, LangGraph state machine, and validator pipeline details.
* **[AGENT_SPEC.md](file:///d:/Universal%20Agent/dev-agent/AGENT_SPEC.md)**: Fields and structure layout of the platform-agnostic specification.
* **[API.md](file:///d:/Universal%20Agent/dev-agent/API.md)**: FastAPI REST endpoints, JSON payloads, and response models.
* **[DEVELOPMENT.md](file:///d:/Universal%20Agent/dev-agent/DEVELOPMENT.md)**: Local developer setup, migration workflow, and testing details.