Member Junction
    Preparing search index...

    Function BuildAppRealtimeOverridesJson

    • Maps an app's Application.AgentSettings.Realtime block (+ optional RelevantAgents) into the canonical {"realtime":{…}} JSON the cascade consumes as its app layer. Pure mapper so the call site (which reads AgentSettingsObject) stays thin and this module stays canonical.

      Parameters

      • OptionalappRealtime: {
            Disclosure?: RealtimeDisclosurePolicy;
            ModelPreference?: string;
            Persona?: { SpeakingStyle?: string; Tone?: string };
        }

        The AgentSettings.Realtime overrides (Disclosure / Persona / ModelPreference).

      • OptionalrelevantAgents: RealtimeAllowedAgent[]

        The app's AgentSettings.RelevantAgents mapped to allowed-agent entries.

      Returns string

      Canonical app-layer JSON string, or null when nothing was supplied (keeps the cascade lower).