54 lines
885 B
Markdown
54 lines
885 B
Markdown
# Agent Framework
|
|
|
|
Fullstack framework tailored for agent workflows
|
|
|
|
Features include:
|
|
|
|
Document tools and models with new docstring protocol
|
|
|
|
doc.py, crud.py, order.py
|
|
|
|
Auto dependency injection (no enforced repo structure)
|
|
|
|
link.py, serve.py
|
|
|
|
UI template definition along side models
|
|
|
|
order.py
|
|
|
|
General comments on design:
|
|
|
|
Requests come in at serve.py
|
|
|
|
They are routed to server depending on subdomain (route.py)
|
|
|
|
Server routes are collected on boot and available globally
|
|
|
|
Repo structure is flexible which is great for dev satisfaction
|
|
|
|
|
|
## Develop
|
|
|
|
#### Creates a virtual environment
|
|
```
|
|
python3 -m venv env
|
|
```
|
|
|
|
#### Activates environment
|
|
```
|
|
source env/bin/activate
|
|
```
|
|
|
|
#### Install dependencies
|
|
```
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
#### Run
|
|
```
|
|
cd src/
|
|
|
|
python3 main.py
|
|
```
|
|
|
|
See it build various routes, runners, and handlers, as well as start the webserver
|