Class PromptBuilder

java.lang.Object
io.jenkins.plugins.changeinvestigator.ai.PromptBuilder

public final class PromptBuilder extends Object
Builds the prompt sent to the configured OpenAI-compatible endpoint. Only the fields assembled here ever leave Jenkins - this is the single place that decides what data is transmitted to an external AI provider.
  • Constructor Details

    • PromptBuilder

      public PromptBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • systemPrompt

      public String systemPrompt()
    • userContent

      public String userContent(BuildInvestigationEvidence evidence)
      Renders the evidence bundle as the compact JSON document sent as the user message.