Record Class AiAnalysisResult
java.lang.Object
java.lang.Record
io.jenkins.plugins.changeinvestigator.ai.AiAnalysisResult
public record AiAnalysisResult(String responseText, String providerDisplayName, String model)
extends Record
Provider-agnostic analysis result: the raw assistant text (not yet parsed as the
evidence-assessment JSON - see
AiResponseParser), plus which provider and model
actually produced it, for display alongside the assessment.-
Constructor Summary
ConstructorsConstructorDescriptionAiAnalysisResult(String responseText, String providerDisplayName, String model) Creates an instance of aAiAnalysisResultrecord 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.model()Returns the value of themodelrecord component.Returns the value of theproviderDisplayNamerecord component.Returns the value of theresponseTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiAnalysisResult
Creates an instance of aAiAnalysisResultrecord class.- Parameters:
responseText- the value for theresponseTextrecord componentproviderDisplayName- the value for theproviderDisplayNamerecord componentmodel- the value for themodelrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
responseText
Returns the value of theresponseTextrecord component.- Returns:
- the value of the
responseTextrecord component
-
providerDisplayName
Returns the value of theproviderDisplayNamerecord component.- Returns:
- the value of the
providerDisplayNamerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-