Record Class Recap.Provenance

java.lang.Object
java.lang.Record
com.axelor.ai.chat.Recap.Provenance
Record Components:
messages - messages in the scoped range
toolCalls - recorded writes in the scoped range, counted before they were merged per record
whole - true when the range was the whole conversation rather than the unread tail
Enclosing class:
Recap

public static record Recap.Provenance(int messages, int toolCalls, boolean whole) extends Record
What the recap was built from, rendered as the card's footer.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Provenance(int messages, int toolCalls, boolean whole)
    Creates an instance of a Provenance record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the messages record component.
    int
    Returns the value of the toolCalls record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the whole record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Provenance

      public Provenance(int messages, int toolCalls, boolean whole)
      Creates an instance of a Provenance record class.
      Parameters:
      messages - the value for the messages record component
      toolCalls - the value for the toolCalls record component
      whole - the value for the whole record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • messages

      public int messages()
      Returns the value of the messages record component.
      Returns:
      the value of the messages record component
    • toolCalls

      public int toolCalls()
      Returns the value of the toolCalls record component.
      Returns:
      the value of the toolCalls record component
    • whole

      public boolean whole()
      Returns the value of the whole record component.
      Returns:
      the value of the whole record component