Skip to content

Function: normalizeGenieSpaces()

normalizeGenieSpaces(spaces): Record<string, GenieSpaceConfig>

Normalize the GenieSpacesConfig record. Bare-string entries ({ default: "01ef..." }) get wrapped as { spaceId: "01ef..." }; object entries pass through unchanged.

GenieSpacesConfig | Record<string, string | GenieSpaceConfig | undefined> | undefined

Record<string, GenieSpaceConfig>

ConfigurationError when an alias is present but carries no space id ({ default: process.env.DATABRICKS_GENIE_SPACE_ID } with the variable unset). An alias that resolves to nothing is a wiring contradiction: the agent would advertise no Genie tool for a space the deployment believes it configured, so it fails at construction instead of going quiet.