MAIDR Documentation - v3.72.1
    Preparing search index...

    Function formatSystemPrompt

    • Formats the system prompt by combining base prompt with custom instructions. A 'custom' expertise selection is mapped to 'advanced' upstream (see ChatService.getLlmResponse), so the base prompt is always one of the three levels above with the custom instruction appended.

      Parameters

      • customInstruction: string

        Additional custom instructions to append

      • expertiseLevel: "basic" | "intermediate" | "advanced"

        The expertise level to determine base prompt

      Returns string

      The formatted system prompt string