Spaces:
Running

RayMelius Claude Opus 4.6 commited on
Commit
a4397fb
·
1 Parent(s): 0f429d3

Add gender, romance system, web UI, and API event log

Browse files

- Add gender field to all 20 personas (male/female/nonbinary)
- Implement romance system: romantic_interest tracking with relationship
progression (crushing -> dating -> engaged -> married)
- Add partner_id to agents for tracking romantic partners
- Create web UI (web/index.html): canvas-based city visualization with
buildings, animated agents with gender-specific sprites, weather effects,
day/night cycle, couple hearts/lines, event log, and agent detail panel
- Add /api/events endpoint and persistent event history in simulation
- Serve web UI from FastAPI with static file mounting
- Update default Ollama model to llama3.2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

9 files changed +1081 -3
Files changed (9)
config/personas.yaml+20
src/soci/agents/agent.py+4
src/soci/agents/persona.py+2
src/soci/agents/relationships.py+15-1
src/soci/api/routes.py+11
src/soci/api/server.py+11
src/soci/engine/llm.py+1-1
src/soci/engine/simulation.py+116-1
web/index.htmlAdded+901