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
ConstructorsConstructorDescriptionAiAnalysisRequest(String systemPrompt, String userContent, double temperature) Creates an instance of aAiAnalysisRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesystemPromptrecord component.doubleReturns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserContentrecord component.
-
Constructor Details
-
AiAnalysisRequest
Creates an instance of aAiAnalysisRequestrecord class.- Parameters:
systemPrompt- the value for thesystemPromptrecord componentuserContent- the value for theuserContentrecord componenttemperature- the value for thetemperaturerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
systemPrompt
Returns the value of thesystemPromptrecord component.- Returns:
- the value of the
systemPromptrecord component
-
userContent
Returns the value of theuserContentrecord component.- Returns:
- the value of the
userContentrecord component
-
temperature
public double temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-