MVP implementation of the workflow described in negotiation-agent-workflow.html.
main.py: Runs a full buyer vs seller negotiation loopgraph/: State + workflow nodes + loop orchestrationagents/: BuyerAgent and SellerAgent logictools/: Market, budget, reputation systemsdashboard/app.py: Streamlit dashboardapi/server.py: FastAPI API endpoint for programmatic executiontests/: Pytest coverage for graph and node behavior
The loop orchestration uses langgraph (StateGraph + conditional edges).
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .envAdd your OPENAI_API_KEY in .env.
python main.pystreamlit run dashboard/app.pyuvicorn api.server:app --reload --port 8000Then call POST /negotiate.
pytest -q