Expand description
TOML configuration.
One file per repository, conventionally drep.toml at the root. The shape
is deliberate: every field has a documented default, so a partial file
works. Missing keys are not an error - the section just inherits the
default. Providers are declared as [[llm]], an ordered array of tables:
a preference order, tried head first, each enabled entry a fallback for the
one before it.
The two things this module owns that are not obvious from the field list:
${VAR}expansion. An api key (or any string value) can name an environment variable instead of holding the secret. The file gets committed; the secret does not. An unset variable is an error rather than an empty string, because a silent empty credential produces a confusing 401 instead of a clear “GITHUB_TOKEN is not set”.max_tokensdefaults to None, meaning no cap is sent to the model. Modern reasoning models ship 256k-1M context, and inventing a ceiling truncates them mid-thought. The option stays available for capping spend.
Structs§
Enums§
- Backend
Kind - Which implementation serves one provider entry.
- Config
Error - What went wrong reading or validating the configuration.
- Reasoning
Effort - Reasoning effort accepted by the Codex CLI configuration contract.
Functions§
- default_
config_ path - The conventional config file location:
drep.tomlin the current directory. - env_
var_ refs - Every
${NAME}reference ins, in the order they appear. - env_
var_ refs_ in - Every
${NAME}reference in any string value of a parsed TOML tree. - load
- Load and validate
path. - parse_
protocol - Parses a
protocol =value, orNonewhen it names nothing the SDK speaks. - required_
env_ var_ refs - Every
${NAME}reference thatloadwill actually try to substitute.