Skip to main content

Module config

Module config 

Source
Expand description

~/.warden/config.toml. Every field is optional and has a default.

Pricing lives here and only here — the binary never hardcodes a rate, and an unpriced model yields None rather than a misleading 0.0.

Structs§

Config
Loaded configuration, with defaults already applied.
General
ModelPrice
Per-million-token rates for one model. cache_write is optional because not every provider bills it separately.
Pricing
A price table, owned. Empty by default, and an empty table prices nothing.
Source
TokenCounts
Token counts to price. Absent counts are None, never 0.

Enums§

ConfigError