opencarl
    Preparing search index...

    Function buildOpencarlInjection

    • Build the OpenCARL injection content for system prompt integration.

      Combines domain rules from matched domains, always-on domains, and command domains into a structured XML block that can be injected into the system prompt. Handles special rendering for the CONTEXT domain with bracket-based filtering.

      Parameters

      Returns string

      Formatted injection string, or null if no rules to inject