Skip to main content

Headless LLM-driven narrative game engine: persistent SQLite universes, LLM-arbitrated turns, event sourcing/rewind, vector memory.

Project description

axiomai-engine

LLM-driven narrative game engine, headless (no GUI required).

  • Persistent SQLite universes, versionable as a plain-text tree ("Universe-as-Code")
  • LLM-arbitrated narration (Gemini, Ollama, or any OpenAI-compatible endpoint)
  • Event sourcing: every turn is replayable, in-game time can be rewound (rewind)
  • Long-term vector memory (ChromaDB + sentence-transformers)
  • Game modes: Normal, Hardcore (permadeath), Companion (AI co-piloted hero)
  • Full CLI: axiom play, axiom compile, axiom populate, axiom save-*

Installation

pip install axiomai-engine

Quick start

import axiom
axiom.help()   # built-in guide: API, modules, CLI
from axiom.config import load_config, build_llm_from_config
from axiom.db_helpers import create_new_save

llm = build_llm_from_config(load_config())
save_id = create_new_save("MyUniverse.db", "Alice", "Normal")

s = axiom.Session("MyUniverse.db", save_id, llm=llm)
result = s.take_turn("I push open the tavern door.")
print(result.narrative_text)

Documentation

Guides (Universe-as-Code, CLI, saves, populate, backends, images) and full API reference, in English and French: https://frosoore.github.io/AxiomAI/en/

Project

Source code, GUI application (the engine's showcase) and issue tracker: https://github.com/Frosoore/AxiomAI

License

AGPL-3.0-or-later — see LICENSE. Attribution is required when redistributing (AGPLv3 §7(b) additional term) — see NOTICE.

This package is developed in the Axiom AI mono-repo, whose GUI application showcases the engine. Version 0.1.6.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axiomai_engine-0.1.6.tar.gz (168.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axiomai_engine-0.1.6-py3-none-any.whl (189.7 kB view details)

Uploaded Python 3

File details

Details for the file axiomai_engine-0.1.6.tar.gz.

File metadata

  • Download URL: axiomai_engine-0.1.6.tar.gz
  • Upload date:
  • Size: 168.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for axiomai_engine-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5321e828ac1b3ddefe6e2813ad3d9f7a23f1ad7efe48615c63ff484e52365707
MD5 1a9071240e27b82a5bdb736ebaea4741
BLAKE2b-256 7876c5dd98ce4b69709c6f1c6e67eac5561abccc7327e77547d20c720833bbaa

See more details on using hashes here.

File details

Details for the file axiomai_engine-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: axiomai_engine-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 189.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for axiomai_engine-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 717ed3dfd00f6bfccf582788c084cbe2c6cb7090b95b3a81655692d485f21172
MD5 756ace34e316fd930688a2acbe9211cc
BLAKE2b-256 cf88e869fc8c19e4cdfaaa784cfebcab6341739886d1ea421e09463c42aec79a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page