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: {
            Channels?: {
                Config?: Record<string, JSONObjectLike>;
                DisplayPolicy?: Record<string, RealtimeChannelDisplayPolicy>;
                Exclude?: string[];
                Include?: string[];
                RequireZeroDataRetentionFor?: ("state" | "pixels")[];
            };
            Disclosure?: RealtimeDisclosurePolicy;
            ModelPreference?: string;
            Persona?: { SpeakingStyle?: string; Tone?: string };
        }

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

        • OptionalChannels?: {
              Config?: Record<string, JSONObjectLike>;
              DisplayPolicy?: Record<string, RealtimeChannelDisplayPolicy>;
              Exclude?: string[];
              Include?: string[];
              RequireZeroDataRetentionFor?: ("state" | "pixels")[];
          }

          AgentSettings.Realtime.Channels — the app's channel scoping (see RealtimeConfigSection.channels).

        • OptionalDisclosure?: RealtimeDisclosurePolicy
        • OptionalModelPreference?: string
        • OptionalPersona?: { SpeakingStyle?: string; Tone?: string }
      • 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).