Skip to content

vox-llm-config API Reference (generated)

Crate: vox-llm-config · Version: 0.6.0 · Target: Library (lib.rs)

SSOT for LLM/AI setting keys: the declarative LlmConfigKey registry (env name + display metadata + secret classification). vox-secrets, vox-config, and vox-gui are views over it. Pure-data, zero workspace deps (layer 0).

SSOT for LLM/AI setting keys.

LLM_CONFIG_KEYS is the single home for every LLM/AI provider/endpoint/model/ tuning/budget setting. vox-secrets (secret resolution), vox-config (typed accessors), and vox-gui (the Runtime settings catalog) are all views over this table — never parallel copies. Drift is forbidden by parity tests in those crates.

This crate is layer 0: pure data, zero workspace deps. It therefore holds only key metadata (env name, kind, group, label, hint, literal default, secret flag, persistence + config class) — never secret values (those resolve via Clavis in vox-secrets) and never upward calls into accessor crates (defaults are literals; the typed env-resolving accessors live in vox-config).

StructDescription
LlmConfigKeyOne LLM/AI setting. env is the canonical identity every view keys on.
GuiFieldGUI-facing projection of one non-secret key. vox-gui maps this to its Tauri DTO — it does not own the field list.
EnumDescription
Kind—
Group—
PersistenceWhere a non-secret key is persisted. Secrets are EnvOnly (Clavis-backed).
ConfigClassOperator classification, mirrored from vox_config::operator_registry::ConfigClass (kept here so this crate stays dependency-free; a parity test keeps them aligned).
FunctionDescription
as_str—
as_str—
getLook up a key by its canonical env name.
gui_fieldsGUI catalog: every non-secret key projected for the Runtime settings surface.
Dependency Topology, diagram 12 nodes, 1 edge: vox-config → vox-llm-configvox-llm-configvox-config
Diagram source
graph {
direction: right
node vox_llm_config: "vox-llm-config"
node vox_config: "vox-config"
vox_config -> vox_llm_config
}
Consumer CrateRole
vox-configDirect workspace dependent
KindSymbolSignatureSourceDescription
structLlmConfigKeypub struct LlmConfigKeycrates/vox-llm-config/src/lib.rs#L17-L32One LLM/AI setting. env is the canonical identity every view keys on.
enumKindpub enum Kindcrates/vox-llm-config/src/lib.rs#L35-L43—
enumGrouppub enum Groupcrates/vox-llm-config/src/lib.rs#L46-L51—
enumPersistencepub enum Persistencecrates/vox-llm-config/src/lib.rs#L55-L62Where a non-secret key is persisted. Secrets are EnvOnly (Clavis-backed).
enumConfigClasspub enum ConfigClasscrates/vox-llm-config/src/lib.rs#L67-L72Operator classification, mirrored from vox_config::operator_registry::ConfigClass (kept here so this crate stays dependency-free; a parity test keeps them aligned).
structGuiFieldpub struct GuiFieldcrates/vox-llm-config/src/lib.rs#L77-L85GUI-facing projection of one non-secret key. vox-gui maps this to its Tauri DTO — it does not own the field list.
fnas_strpub fn as_str(self) -> &'static strcrates/vox-llm-config/src/lib.rs#L88-L98—
fnas_strpub fn as_str(self) -> &'static strcrates/vox-llm-config/src/lib.rs#L102-L109—
fngetpub fn get(env: &str) -> Option<&'static LlmConfigKey>crates/vox-llm-config/src/lib.rs#L113-L115Look up a key by its canonical env name.
fngui_fieldspub fn gui_fields() -> Vec<GuiField>crates/vox-llm-config/src/lib.rs#L118-L132GUI catalog: every non-secret key projected for the Runtime settings surface.