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

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.5.tar.gz (167.1 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.5-py3-none-any.whl (187.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: axiomai_engine-0.1.5.tar.gz
  • Upload date:
  • Size: 167.1 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.5.tar.gz
Algorithm Hash digest
SHA256 e08b3d4ba69366bce0230c76964007e47781f5142772704a54374ab63f502e45
MD5 cf958dc6f3b565d28cef4dbd17f6f611
BLAKE2b-256 259c5931e33a60e3784e5790257e0b4a216f85dee428add986f728b9d1cdbb2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: axiomai_engine-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 187.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fa6a5db372bfbcc7b27d1f453a43114ef19be10a0fb410ba00503e00c2adcf3b
MD5 d5b18c10c278dc923f91186c60a4a30a
BLAKE2b-256 a4d091fd1b659fb4e50a5983cfc0776fe98bc184478f8647eedff88b1f09229b

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