A sophisticated artificial life simulation that implements continuous thought processes and desire-driven behavior, mimicking the cognitive patterns of living beings.
- Continuous Thinking Process: Simulates ongoing thought generation and self-reflection
- Desire System: Implements a flexible system of desires and goals that guide the AI's behavior
- Multi-LLM Support: Compatible with both Ollama and OpenAI language models
- Persistent Storage: Stores thoughts and desires in a SQLite database
- REST API: Full-featured API for interaction and control
- Clone the repository:
git clone https://github.com/yourusername/Living-Being.git
cd Living-Being
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python -m app.main
POST /start
- Start the thinking processPOST /stop
- Stop the thinking processGET /thoughts
- Retrieve all thoughtsPOST /desires
- Add a new desireDELETE /desires/{id}
- Remove a desireGET /status
- Get current system status
The application can be configured using environment variables:
OPENAI_API_KEY
- Your OpenAI API key (if using OpenAI)LLM_PROVIDER
- Choose between "ollama" or "openai" (default: "ollama")OLLAMA_BASE_URL
- Ollama API URL (default: "http://localhost:11434")OLLAMA_MODEL
- Ollama model to use (default: "llama2")
Run the test suite:
pytest app/tests/
Living-Being/
├── app/
│ ├── api/
│ ├── core/
│ │ └── thinking_engine.py
│ ├── models/
│ │ ├── database.py
│ │ ├── desire.py
│ │ └── thought.py
│ ├── schemas/
│ │ ├── desire.py
│ │ └── thought.py
│ ├── tests/
│ │ ├── test_api.py
│ │ └── test_thinking_engine.py
│ ├── utils/
│ │ └── llm_interface.py
│ └── main.py
├── requirements.txt
└── README.md
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License