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).
Crate Overview
Section titled “Crate Overview”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).
Public API Surface
Section titled “Public API Surface”Structs
Section titled “Structs”| Struct | Description |
|---|---|
LlmConfigKey | One LLM/AI setting. env is the canonical identity every view keys on. |
GuiField | GUI-facing projection of one non-secret key. vox-gui maps this to its Tauri DTO — it does not own the field list. |
| Enum | Description |
|---|---|
Kind | — |
Group | — |
Persistence | Where a non-secret key is persisted. Secrets are EnvOnly (Clavis-backed). |
ConfigClass | Operator classification, mirrored from vox_config::operator_registry::ConfigClass (kept here so this crate stays dependency-free; a parity test keeps them aligned). |
Functions
Section titled “Functions”| Function | Description |
|---|---|
as_str | — |
as_str | — |
get | Look up a key by its canonical env name. |
gui_fields | GUI catalog: every non-secret key projected for the Runtime settings surface. |
Dependency Topology
Section titled “Dependency Topology”Diagram source
graph { direction: right node vox_llm_config: "vox-llm-config" node vox_config: "vox-config" vox_config -> vox_llm_config}Reverse Dependents (Used By)
Section titled “Reverse Dependents (Used By)”| Consumer Crate | Role |
|---|---|
vox-config | Direct workspace dependent |
Deep Public Symbols (Source-Anchored)
Section titled “Deep Public Symbols (Source-Anchored)”| Kind | Symbol | Signature | Source | Description |
|---|---|---|---|---|
struct | LlmConfigKey | pub struct LlmConfigKey | crates/vox-llm-config/src/lib.rs#L17-L32 | One LLM/AI setting. env is the canonical identity every view keys on. |
enum | Kind | pub enum Kind | crates/vox-llm-config/src/lib.rs#L35-L43 | — |
enum | Group | pub enum Group | crates/vox-llm-config/src/lib.rs#L46-L51 | — |
enum | Persistence | pub enum Persistence | crates/vox-llm-config/src/lib.rs#L55-L62 | Where a non-secret key is persisted. Secrets are EnvOnly (Clavis-backed). |
enum | ConfigClass | pub enum ConfigClass | crates/vox-llm-config/src/lib.rs#L67-L72 | Operator classification, mirrored from vox_config::operator_registry::ConfigClass (kept here so this crate stays dependency-free; a parity test keeps them aligned). |
struct | GuiField | pub struct GuiField | crates/vox-llm-config/src/lib.rs#L77-L85 | GUI-facing projection of one non-secret key. vox-gui maps this to its Tauri DTO — it does not own the field list. |
fn | as_str | pub fn as_str(self) -> &'static str | crates/vox-llm-config/src/lib.rs#L88-L98 | — |
fn | as_str | pub fn as_str(self) -> &'static str | crates/vox-llm-config/src/lib.rs#L102-L109 | — |
fn | get | pub fn get(env: &str) -> Option<&'static LlmConfigKey> | crates/vox-llm-config/src/lib.rs#L113-L115 | Look up a key by its canonical env name. |
fn | gui_fields | pub fn gui_fields() -> Vec<GuiField> | crates/vox-llm-config/src/lib.rs#L118-L132 | GUI catalog: every non-secret key projected for the Runtime settings surface. |