Record Class Attempt
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.agent.graph.impl.Attempt
public record Attempt(int number, String originalPrompt, String prompt, List<com.embabel.chat.Message> history)
extends Record
Model attempt with the original request and its current repair prompt.
-
Constructor Summary
Constructors -
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.List<com.embabel.chat.Message> history()Returns the value of thehistoryrecord component.intnumber()Returns the value of thenumberrecord component.Returns the value of theoriginalPromptrecord component.prompt()Returns the value of thepromptrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Attempt
public Attempt(int number, String originalPrompt, String prompt, List<com.embabel.chat.Message> history) Creates an instance of aAttemptrecord class.- Parameters:
number- the value for thenumberrecord componentoriginalPrompt- the value for theoriginalPromptrecord componentprompt- the value for thepromptrecord componenthistory- the value for thehistoryrecord 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 '=='. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
originalPrompt
Returns the value of theoriginalPromptrecord component.- Returns:
- the value of the
originalPromptrecord component
-
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-