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/

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.3.

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.3.tar.gz (153.3 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.3-py3-none-any.whl (173.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: axiomai_engine-0.1.3.tar.gz
  • Upload date:
  • Size: 153.3 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.3.tar.gz
Algorithm Hash digest
SHA256 eadfe4c2d0ef58ad3053fc52432a84778020a921b6c80be2092608e0dd0f0925
MD5 44e50ff24c234ba5abf3d27510be0c23
BLAKE2b-256 af7eee93c2f0282872756282b514e17786d1bf31946b23e85b5804cc031bc59a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: axiomai_engine-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 173.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68a50b0b21e4d8f11bbb64c39164974376f37f446c435a281e9287e5788a9ee3
MD5 1f20ffe74636574f7a7030dbf971c9cb
BLAKE2b-256 73d060ceb1f843dccaad1ca3b25814199d7e876d98ddbb78035e6a20bf922b55

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