Record Class AiAnalysisRequest

java.lang.Object
java.lang.Record
io.jenkins.plugins.changeinvestigator.ai.AiAnalysisRequest

public record AiAnalysisRequest(String systemPrompt, String userContent, double temperature) extends Record
Provider-agnostic analysis request: a system prompt, the evidence rendered as the user message, and the sampling temperature. Every AiProvider adapter translates this into its own wire format - nothing upstream of this record needs to know what that format is.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AiAnalysisRequest(String systemPrompt, String userContent, double temperature)
    Creates an instance of a AiAnalysisRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the systemPrompt record component.
    double
    Returns the value of the temperature record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the userContent record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AiAnalysisRequest

      public AiAnalysisRequest(String systemPrompt, String userContent, double temperature)
      Creates an instance of a AiAnalysisRequest record class.
      Parameters:
      systemPrompt - the value for the systemPrompt record component
      userContent - the value for the userContent record component
      temperature - the value for the temperature record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • systemPrompt

      public String systemPrompt()
      Returns the value of the systemPrompt record component.
      Returns:
      the value of the systemPrompt record component
    • userContent

      public String userContent()
      Returns the value of the userContent record component.
      Returns:
      the value of the userContent record component
    • temperature

      public double temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component