Record Class EditStep
java.lang.Object
java.lang.Record
fr.paris.lutece.plugins.wiki.modules.ai.service.chat.EditStep
- Record Components:
featureId- the AI feature to apply, or null for a free instructioninstruction- the instruction typed by the user, or null for a featureresult- the answer of the model, or null for the request to run
One request of an AI edit on a selection: a feature or a free instruction, with the answer when it is already known.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditStep
Creates an instance of aEditSteprecord class.- Parameters:
featureId- the value for thefeatureIdrecord componentinstruction- the value for theinstructionrecord componentresult- the value for theresultrecord 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). -
featureId
Returns the value of thefeatureIdrecord component.- Returns:
- the value of the
featureIdrecord component
-
instruction
Returns the value of theinstructionrecord component.- Returns:
- the value of the
instructionrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-