import json

from Copilot.LLMLayer.Prompts.copilot_prompts import *


class PromptBuilder:
    def build_system_prompt(self, industry: str = "textile industry", language='en'):
        return COPILOT_PROMPT.format(
            industry=industry,
            language=language,
            response_schema=RESPONSE_SCHEMA
        )

    def build_incident_prompt(self, incident_context, user_message):
        return json.dumps({
            "incident_context": incident_context,
            "user_observation": user_message
        }, ensure_ascii=False)