https://github.com/apoorvalal/lludens
llms for playing games
https://github.com/apoorvalal/lludens
economics llms simulation
Last synced: 10 months ago
JSON representation
llms for playing games
- Host: GitHub
- URL: https://github.com/apoorvalal/lludens
- Owner: apoorvalal
- Created: 2025-02-21T06:56:06.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-27T16:13:10.000Z (11 months ago)
- Last Synced: 2025-02-27T22:55:38.858Z (11 months ago)
- Topics: economics, llms, simulation
- Language: Jupyter Notebook
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `lludens`: LLMs that play economics games
Thin wrapper around `llm` library to simulate economic games between LLMs.
The `TotreLLM` class is an economic agent that accepts a system prompt and keeps track of its own history of interactions.
Setup:
1. install `llm`
2. install plugins for models you want access to (e.g. anthropic, gemini, ollama)
3. supply api keys when relevant
4. install `lludens` from this repo (`uv pip install git+{url}`)
Examples currently include a repeated Prisoner's Dilemma - see `notebooks/basics.ipynb`.