Skip to content

Library

High-level documentation for the code under src/laife/. Each page mirrors one package and links to the source files for detail. For cross-cutting explanations see the guides.

Packages

  • entities - the world, players, buildings, terrain, utensils, actions, and the world channel.
  • llm - the player brain, planner, replier, mission generator, and the mission model.
  • prompts - the versioned Jinja templates that drive the LLM chains.
  • rendering - the pygame view layer and sprites.
  • params - environment-aware settings, paths, and LLM service params.
  • config - type aliases and project-level constants.
  • embed - the sentence-transformers embedding wrapper.
  • meta - the singleton metaclass and the structured logger.
  • ui - the asynchronous console logger.
  • data_models - the shared pydantic base.

How the packages relate

The pure logic lives in entities, llm, config, and data_models, with no pygame dependency. prompts holds the template text the llm chains load at runtime. rendering and ui are presentation layers that observe the logic. params and config supply settings to all of them. meta and embed are support utilities. See the architecture guide for the runtime picture.