Skip to main content

Module composition

Module composition 

Source
Expand description

Composition root: the single place where concrete adapters are wired onto the application ports. All entry points (CLI and MCP server) build their dependencies through this module so wiring exists exactly once.

Functions§

load_config
Load config.toml, materializing the default file when absent.
make_llm_engine
Build the LLM research engine from config.toml [llm]. A missing [llm] section yields the default (provider-configured) engine; a missing API key is only warned about here — the engine resolves it at call time.
open_store
Open the workspace SQLite store at db_path.
resolve_db
The database path: the global --db flag wins, otherwise the default under ~/.research.