params¶
Environment-aware settings for the project.
Source: src/laife/params/.
For the concepts and the secret-handling rules see the params and config guide.
Entry point¶
laife_params.py defines LaifeParams, the singleton that aggregates everything: paths and LLM service params.
It is constructed from an EnvType and shared process-wide.
Environment¶
env_type.py defines the stage and location enums and how they are read from environment variables.
This is the switch every other params class dispatches on.
Paths¶
laife_paths.py defines LaifePaths, which resolves filesystem locations per environment location.
LLM services¶
llm_services/ holds the per-service settings:
chat.py- chat model settings for the player and world chains.embeddings.py- embedding model settings.search.py- vector search settings, which build on the embeddings.
LLMServicesParams in __init__.py assembles the three.
Secrets¶
load_env.py loads credentials from ~/cred/laife/.env.
Secret values come only from the environment; non-secret values are written as literals selected per environment.