Record Class AgentObservation.ContextCompacted

java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.AgentObservation.ContextCompacted
All Implemented Interfaces:
AgentHistoryPayload, AgentObservation
Enclosing interface:
AgentObservation

public static record AgentObservation.ContextCompacted(String summary, UUID firstMessageId, UUID lastMessageId, Instant lastMessageDate, long messageCount, @Nullable Integer previousVersion) extends Record implements AgentObservation
A successfully installed summary and the exact original-message boundary it covers.
  • Constructor Details

    • ContextCompacted

      public ContextCompacted(String summary, UUID firstMessageId, UUID lastMessageId, Instant lastMessageDate, long messageCount, @Nullable Integer previousVersion)
      Creates an instance of a ContextCompacted record class.
      Parameters:
      summary - the value for the summary record component
      firstMessageId - the value for the firstMessageId record component
      lastMessageId - the value for the lastMessageId record component
      lastMessageDate - the value for the lastMessageDate record component
      messageCount - the value for the messageCount record component
      previousVersion - the value for the previousVersion 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • summary

      public String summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component
    • firstMessageId

      public UUID firstMessageId()
      Returns the value of the firstMessageId record component.
      Returns:
      the value of the firstMessageId record component
    • lastMessageId

      public UUID lastMessageId()
      Returns the value of the lastMessageId record component.
      Returns:
      the value of the lastMessageId record component
    • lastMessageDate

      public Instant lastMessageDate()
      Returns the value of the lastMessageDate record component.
      Returns:
      the value of the lastMessageDate record component
    • messageCount

      public long messageCount()
      Returns the value of the messageCount record component.
      Returns:
      the value of the messageCount record component
    • previousVersion

      public @Nullable Integer previousVersion()
      Returns the value of the previousVersion record component.
      Returns:
      the value of the previousVersion record component