Skip to main content

Module config_loader

Module config_loader 

Source
Expand description

Reads, parses, and merges the active services configuration.

ConfigLoader is the only public entry point. It resolves the active profile (via systemprompt_config::ProfileBootstrap) to a YAML path, parses the root file, recursively resolves the includes: graph (rejecting cycles and duplicate definitions), inlines !include references inside agent system prompts, skill instructions and gateway prompt overrides, projects the gateway spec to its resolved runtime form, and finally validates the merged configuration — provider registry and gateway references included — before returning it to the caller.

ConfigLoader::load — the active-profile entry point — memoises its result for the lifetime of the process. The explicit ConfigLoader::load_from_path and ConfigLoader::validate_file forms are one-shot reads of a caller-supplied file and are never cached.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Modules§

gateway
Gateway-section post-parse fix-ups for the services loader.

Structs§

ConfigLoader