A sophisticated AI-driven town simulation system with autonomous characters, dynamic interactions, and realistic behaviors.
📚 Documentation | 🚀 Quick Start | 💡 Examples | 🤝 Contributing
- 🤖 AI-Driven Characters: Autonomous NPCs with realistic behaviors and decision-making capabilities
- 🔄 Dynamic State Management: Sophisticated state system for character behaviors and interactions
- ⚡ Real-time Simulation: Live updates and interactions within the town environment
- 🧠 Memory System: Advanced memory management using vector embeddings and semantic search
- 🏢 Building System: Flexible building management with dynamic interactions
- 🔗 LLM Integration: Seamless integration with Large Language Models for natural interactions
- Python 3.8 or higher
- Docker and Docker Compose
- OpenAI API access (or compatible LLM service)
- Clone the Repository
git clone https://github.com/KingJiongEN/DegentCivil.git
cd DegentCivil
- Set Up Environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
- Start Required Services
# Start Milvus
mkdir -p milvus/{db,minio}
docker-compose -f docker-compose_milvus.yml up -d
# Start Redis
docker run --name my-redis -p 6379:6379 -d redis
- Run the Service
DEBUG=1 Milvus=1 python main.py
Visit our comprehensive documentation for detailed information:
- URL:
localhost:18000
- Username:
minioadmin
- Password:
minioadmin
export PYTHONPATH="{project_path}:$PYTHONPATH"
export OPENAI_API_KEY=your_api_key_here
python -m app.models.memory
DegentCivil/
├── app/ # Main application directory
│ ├── main.py # Application entry point
│ ├── models/ # Data models
│ ├── services/ # Business logic
│ ├── llm/ # LLM integration
│ └── utils/ # Utility functions
├── config/ # Configuration files
├── docs/ # Documentation
└── tests/ # Test suite
We welcome contributions! Please see our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for LLM capabilities
- Milvus for vector database
- Redis for caching
- All our contributors