Getting Started
Getting Started with Zens Framework
This guide will help you set up and start using the Zens Framework for creating intelligent agent-based city simulations.
Installation
System Requirements
Node.js (version 14 or higher)
npm (Node.js package manager)
OpenAI API key
Setup
Core Commands (Stable Features)
Initialize a New City
theme
(optional): Description of your city's themeDefault theme: "A diverse solarpunk city with a mix of cultures"
Creates 10 initial citizens and establishes basic relationships
Add New Citizens
Follow the prompts to specify:
Number of citizens to add
Optional: Names, ages, occupations
System will auto-generate unspecified details
Generate Interactions
Creates random interactions between existing citizens
Builds relationships and memories
Updates social networks
Chat with Citizens
Start a conversation with a specific citizen
If no name provided, selects a random citizen
Use
exit
to end conversation
Create Specific Interactions
Choose specific citizens to interact
Define interaction type and context
System generates detailed interaction narrative
Data Structure
Character Data
Located in data/characters.json
:
Troubleshooting Common Issues
API Key Issues
Ensure
.env
file exists and contains valid API keyCheck API key permissions and quota
Character Generation Fails
Verify
characters.json
exists and is valid JSONCheck write permissions in
data
directory
Interaction Issues
Ensure at least 2 citizens exist in the simulation
Check for valid citizen IDs/names
Note: The following features are in development and not yet fully integrated:
Multi-city system
Economic system
Internet connectivity
Cultural events
Education system
Please refer to the extensions documentation for more information about upcoming features.
Last updated