Package com.axelor.ai.chat
Record Class Recap.Provenance
java.lang.Object
java.lang.Record
com.axelor.ai.chat.Recap.Provenance
- Record Components:
messages- messages in the scoped rangetoolCalls- recorded writes in the scoped range, counted before they were merged per recordwhole- true when the range was the whole conversation rather than the unread tail
- Enclosing class:
Recap
What the recap was built from, rendered as the card's footer.
-
Constructor Summary
ConstructorsConstructorDescriptionProvenance(int messages, int toolCalls, boolean whole) Creates an instance of aProvenancerecord 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.intmessages()Returns the value of themessagesrecord component.intReturns the value of thetoolCallsrecord component.final StringtoString()Returns a string representation of this record class.booleanwhole()Returns the value of thewholerecord component.
-
Constructor Details
-
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 with '=='. -
messages
public int messages()Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
toolCalls
public int toolCalls()Returns the value of thetoolCallsrecord component.- Returns:
- the value of the
toolCallsrecord component
-
whole
public boolean whole()Returns the value of thewholerecord component.- Returns:
- the value of the
wholerecord component
-