Package io.jmix.dynmodelai.model
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.dynmodelai.model.AgentObservation
AgentObservation.ContextCompacted, AgentObservation.ContextCompactionFailed, AgentObservation.GraphStateChanged, AgentObservation.ModelResponseReceived, AgentObservation.ModelSelected, AgentObservation.PlanValidationCompleted, AgentObservation.ReferenceToolCompleted, AgentObservation.ReferenceToolStarted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstMessageIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastMessageDaterecord component.Returns the value of thelastMessageIdrecord component.longReturns the value of themessageCountrecord component.@Nullable IntegerReturns the value of thepreviousVersionrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContextCompacted
public ContextCompacted(String summary, UUID firstMessageId, UUID lastMessageId, Instant lastMessageDate, long messageCount, @Nullable Integer previousVersion) Creates an instance of aContextCompactedrecord class.- Parameters:
summary- the value for thesummaryrecord componentfirstMessageId- the value for thefirstMessageIdrecord componentlastMessageId- the value for thelastMessageIdrecord componentlastMessageDate- the value for thelastMessageDaterecord componentmessageCount- the value for themessageCountrecord componentpreviousVersion- the value for thepreviousVersionrecord 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 '=='. -
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
firstMessageId
Returns the value of thefirstMessageIdrecord component.- Returns:
- the value of the
firstMessageIdrecord component
-
lastMessageId
Returns the value of thelastMessageIdrecord component.- Returns:
- the value of the
lastMessageIdrecord component
-
lastMessageDate
Returns the value of thelastMessageDaterecord component.- Returns:
- the value of the
lastMessageDaterecord component
-
messageCount
public long messageCount()Returns the value of themessageCountrecord component.- Returns:
- the value of the
messageCountrecord component
-
previousVersion
Returns the value of thepreviousVersionrecord component.- Returns:
- the value of the
previousVersionrecord component
-