Skip to main content

snapshot_state

Function snapshot_state 

Source
pub fn snapshot_state(cfg: &Config) -> QuickstartState
Expand description

Build a QuickstartState snapshot from the live config.

The two *_types lists are populated from the canonical sources (zeroclaw_providers::list_model_providers() for providers, cfg.channels.channels() for channel kinds). Adding a new entry in either source automatically lights up here — no Quickstart code change required. This is the DRY contract the plan calls out under “Reads the per-provider field map at render time so adding a provider in the schema doesn’t require Quickstart code changes.”