Package io.jmix.dynmodelai.model
Record Class AgentHistoryRecord
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.AgentHistoryRecord
public record AgentHistoryRecord(long sequence, Instant occurredAt, UUID conversationId, UUID runId, AgentHistoryPayload payload)
extends Record
One persisted position; its sequence is independent of the live progress cursor.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentHistoryRecord(long sequence, Instant occurredAt, UUID conversationId, UUID runId, AgentHistoryPayload payload) Creates an instance of aAgentHistoryRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconversationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoccurredAtrecord component.payload()Returns the value of thepayloadrecord component.runId()Returns the value of therunIdrecord component.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentHistoryRecord
public AgentHistoryRecord(long sequence, Instant occurredAt, UUID conversationId, UUID runId, AgentHistoryPayload payload) Creates an instance of aAgentHistoryRecordrecord class.- Parameters:
sequence- the value for thesequencerecord componentoccurredAt- the value for theoccurredAtrecord componentconversationId- the value for theconversationIdrecord componentrunId- the value for therunIdrecord componentpayload- the value for thepayloadrecord 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 '=='. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
occurredAt
Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
conversationId
Returns the value of theconversationIdrecord component.- Returns:
- the value of the
conversationIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-