Skip to main content

Module field_visibility

Module field_visibility 

Source
Expand description

Per-section field visibility helpers.

Used by both the CLI wizard (onboard::offer_advanced_settings) and the gateway HTTP endpoints (/api/config/list for filtering). One source of truth so the CLI and dashboard can’t disagree about which fields apply.

Per-provider-family field exclusion is GONE as of #6273 — the typed-family ModelProviders container only exposes fields that genuinely apply to each family (every typed *ModelProviderConfig carries only its own surface), so there’s nothing to suppress. Memory-backend exclusion stays because the [memory] section is still a single struct carrying every backend’s sub-tables (the typed-family pattern hasn’t been applied there).

Functions§

excluded_paths
Compute the set of full property paths to hide when a client requests prefix. Returns an empty vec for prefixes that don’t have visibility rules (most of the schema).
is_excluded
Test whether path is one of the excluded entries returned from excluded_paths. Handles both exact matches and sub-table prefix markers ("memory.qdrant." matches every memory.qdrant.*).
memory_backend_excludes
Exclude list for the top-level [memory] walk based on the active backend.