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
--dbflag wins, otherwise the default under~/.research.