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

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.2.0.tar.gz (206.5 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.2.0-py3-none-any.whl (231.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: axiomai_engine-0.2.0.tar.gz
  • Upload date:
  • Size: 206.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 741ba43772a01ebee0863c0c87c9ddc953647144577bb6d0aa9bbd268a491841
MD5 988837589db581ba503d28d116e03ffd
BLAKE2b-256 e47e1f2b4e12c04ba1eae9c16598be6e89e62866aabd8e220430882bb5b15957

See more details on using hashes here.

File details

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

File metadata

  • Download URL: axiomai_engine-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 231.8 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bffd745b335b109850ffc1ca3b79e3bc11136313c8233b8680c7faf2e5d2f445
MD5 136fe572117801b6ffb08de63b015e9b
BLAKE2b-256 fef6a6dca1977a0bc9967c474bec0c79a954853a7087af283d2ae61e328c4258

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